Example #1
0
 private void ReceiveMessage(string str)
 {
     if (str == "TurnedLaserOn")
     {
         pictureBox2.Image = GetSnapshot();
         sCom.SendMessage("LaserOff");
         Compare();
     }
     else if (str == "TurnedLaserOff")
     {
         capturing = false;
     }
     UpdateForm();
 }
Example #2
0
 private void SendMessage(String msg)
 {
     textBox.AppendText(">>> " + msg + "\n");
     sCom1.SendMessage(msg);
 }