Esempio n. 1
0
 /// <summary>
 /// 直接发送命令文本
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void buttonSendDirect_Click(object sender, EventArgs e)
 {
     modem.SendDirect(textBoxCmd.Text.Replace("\\r", "\r").Replace("\\n", "\n"));
     textBoxCmd.Text = "";
 }
Esempio n. 2
0
 /// <summary>
 /// 直接发送命令文本
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void buttonSendDirect_Click(object sender, EventArgs e)
 {
     modem.SendDirect(textBoxCmd.Text + "\r");
     textBoxCmd.Text = "";
 }