/// <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 = ""; }
/// <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 = ""; }