private void button_back_Click(object sender, EventArgs e)
        {
            //SendMessage
            SendMsg msg = new SendMsg(WM_CLOSETRAINDLG, MainForm.m_formText);

            msg.SendMsgToOtherForm();
        }
        private void button_back_Click(object sender, EventArgs e)
        {
            //SendMessage
            SendMsg msg = new SendMsg(WM_CLOSETRAINDLG, "家庭服务机器人");

            msg.SendMsgToOtherForm();
        }
Exemple #3
0
        private void 接收到数据(object sender, System.IO.Ports.SerialDataReceivedEventArgs e)
        {
            string data = m_SPManager.接收数据(m_name_errorReturnPort);

            if (data == "wrong")
            {
                MessageBox.Show(data);
                SendMsg msg = new SendMsg(WM_RECEIVEWRONGDATA, "发送串口消息");
                msg.SendMsgToOtherForm();
            }
            //m_SPManager.发送数据("COM3","1/r/n");
        }
Exemple #4
0
 private void button_back_Click(object sender, EventArgs e)
 {
     //SendMessage
     SendMsg msg = new SendMsg(WM_CLOSETRAINDLG,MainForm.m_formText);
     msg.SendMsgToOtherForm();
 }
Exemple #5
0
 private void 接收到数据(object sender, System.IO.Ports.SerialDataReceivedEventArgs e)
 {
     string data=m_SPManager.接收数据(m_name_errorReturnPort);
     if (data=="wrong")
     {
         MessageBox.Show(data);
         SendMsg msg = new SendMsg(WM_RECEIVEWRONGDATA, "发送串口消息");
         msg.SendMsgToOtherForm();
     }
     //m_SPManager.发送数据("COM3","1/r/n");
 }
 private void button_back_Click(object sender, EventArgs e)
 {
     //SendMessage
     SendMsg msg = new SendMsg(WM_CLOSETRAINDLG,"家庭服务机器人");
     msg.SendMsgToOtherForm();
 }