Esempio n. 1
0
 /// <summary>
 /// 发送短信
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void buttonSendSMS_Click(object sender, EventArgs e)
 {
     if (sendmode == SendMode.PDU)
     {
         modem.SendNotelet(textBoxMobileNum.Text, textBoxNoteletContent.Text, Notelet.DCS.Data);
     }
     else
     {
         modem.SendNotelet(textBoxMobileNum.Text, GSMModem.Unicode2Pdustr(textBoxNoteletContent.Text), Notelet.DCS.USC2);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// 调度这个任务, 使之开始执行
 /// </summary>
 public void Start(GSMModem modem)
 {
     this.modem = modem;
     state      = 1;
     step0();
 }
Esempio n. 3
0
 public DlgGSMModemMonitor(GSMModem modem)
 {
     InitializeComponent();
     gsmModemMonitor.Modem = modem;
 }
 /// <summary>
 /// 构造通信设置对话框
 /// </summary>
 /// <param name="serialSetting">要修改的串行通信设置对象</param>
 public DlgGSMModemProperty(GSMModem modem)
 {
     InitializeComponent();
     gsmModemProperty.Modem = modem;
 }
Esempio n. 5
0
 /// <summary>
 /// 构造通信设置对话框
 /// </summary>
 /// <param name="serialSetting">要修改的串行通信设置对象</param>
 public DlgGSMModemProperty(GSMModem modem)
 {
     InitializeComponent();
     this.modem = modem;
     gsmModemProperty.CommSetting = modem.SettingInfo;
 }