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(); }
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 标双击图像(object sender, EventArgs e) { MessageBoxButtons buttons = MessageBoxButtons.YesNo; DialogResult result; // result = MessageBox.Show("您确定选择此好友进行训练吗?", "好友训练", buttons); // if(result == System.Windows.Forms.DialogResult.Yes) // { selectedPerson = this.label_selectName.Text; SendMsg msg = new SendMsg(WM_CLOSETRAINSETDLG, "家庭服务机器人"); msg.SendStringToOtherForm(selectedPerson); this.Close(); /*}*/ }
private void button_back_Click(object sender, EventArgs e) { //SendMessage SendMsg msg = new SendMsg(WM_CLOSETRAINDLG,MainForm.m_formText); msg.SendMsgToOtherForm(); }
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 鼠标双击图像(object sender, EventArgs e) { MessageBoxButtons buttons = MessageBoxButtons.YesNo; DialogResult result; // result = MessageBox.Show("您确定选择此好友进行训练吗?", "好友训练", buttons); // if(result == System.Windows.Forms.DialogResult.Yes) // { selectedPerson = this.label_selectName.Text; SendMsg msg = new SendMsg(WM_CLOSETRAINSETDLG,"家庭服务机器人"); msg.SendStringToOtherForm(selectedPerson); this.Close(); /*}*/ }
private void button_back_Click(object sender, EventArgs e) { //SendMessage SendMsg msg = new SendMsg(WM_CLOSETRAINDLG,"家庭服务机器人"); msg.SendMsgToOtherForm(); }