예제 #1
0
 private void generateSerialBtn_Click(object sender, EventArgs e)
 {
     if (Board == null)
     {
         return;
     }
     Board.Open();
     Board.UpdateSerialNumber(getSerialNumber());
     Board.UpdateDeviceName("MyTreehopper");
     Board.Reboot();
     Board.Close();
 }
예제 #2
0
 static void TreehopperUSB_BoardRemoved(TreehopperManager sender, TreehopperUSB board)
 {
     Board.Close();
     timer.Stop();
 }
예제 #3
0
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     myBoard.Close();
 }