using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.IO.Ports;
namespace WFSS
{
public struct SendNoteInformation
{
public string COMPort;
public int COMbaudRate;
public string COMparity;
public int COMdataBits;
public int COMstopBits;
public string[] SendArray;
public string NoteContent;
}
public class sendNoteClass : alarmInterface
{
private Thread thdSubThread = null;
private SendNoteInformation IsendNoteInformation;
private SerialPort comPort;
public SerialPort FcomPort
{
get { return comPort; }
set { comPort = value; }
}
private object[] alarmInfo;
public object[] FalarmInfo
{
get { return alarmInfo; }
set { alarmInfo = value; }
}
/// <summary>
/// 初始化手机发送短信设置
/// </summary>
/// <param name="Ivalue"> </param>
public sendNoteClass(object[] Ivalue)
{
this.FalarmInfo = Ivalue;
IsendNoteInformation = new SendNoteInformation();
string[] COMInformation = Ivalue[0].ToString().Split(';');
IsendNoteInformation.COMPort &#
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.IO.Ports;
namespace WFSS
{
public struct SendNoteInformation
{
public string COMPort;
public int COMbaudRate;
public string COMparity;
public int COMdataBits;
public int COMstopBits;
public string[] SendArray;
public string NoteContent;
}
public class sendNoteClass : alarmInterface
{
private Thread thdSubThread = null;
private SendNoteInformation IsendNoteInformation;
private SerialPort comPort;
public SerialPort FcomPort
{
get { return comPort; }
set { comPort = value; }
}
private object[] alarmInfo;
public object[] FalarmInfo
{
get { return alarmInfo; }
set { alarmInfo = value; }
}
/// <summary>
/// 初始化手机发送短信设置
/// </summary>
/// <param name="Ivalue"> </param>
public sendNoteClass(object[] Ivalue)
{
this.FalarmInfo = Ivalue;
IsendNoteInformation = new SendNoteInformation();
string[] COMInformation = Ivalue[0].ToString().Split(';');
IsendNoteInformation.COMPort &#