예제 #1
0
파일: Form1.cs 프로젝트: patkinm/Diplom
 private void button1_Click(object sender, EventArgs e)
 {
     String portName = comPortName.Text;
     int portRate = int.Parse(comPortRate.Text);
     Communicator communicator = new Communicator(portName, portRate);
     carThread.Start();
     startCar.Enabled = false;
     stopCar.Enabled = true;
 }
예제 #2
0
파일: PhysicCar.cs 프로젝트: patkinm/Diplom
 public PhysicCar(Communicator com)
 {
     _com = com;
 }