Exemplo n.º 1
0
 public RoboUSBLinkApp()
 {
     MainThreadQueue = new Queue<RoboUSBLinkComm.VoidFunc>();
     AsyncResults = new List<IAsyncResult>();
     Application.EnableVisualStyles();
     Application.Idle += new EventHandler(this.InvokeApplicationThreadItems);
     Comm = new RoboUSBLinkComm("/dev/ttyACM0", this.MarshalToMainThread);
     MainForm = new RoboUSBLinkForm(Comm);
     MainForm.FormClosing += HandleMainFormFormClosing;
       MainForm.Load += (sender, e) => Comm.Start();
     MainForm.Show(null);
 }