Esempio n. 1
0
 private void ShowUploadStatus(bool isSuccess)
 {
     if (isSuccess)
     {
         toolStripStatusLabelUploadStatus.Text      = "FW upgrade has finished successfuly";
         toolStripStatusLabelUploadStatus.ForeColor = Color.Green;
         toolStripStatusLabelUploadStatus.Visible   = true;
     }
     else
     {
         toolStripStatusLabelUploadStatus.Text      = "FW upgrade had failed";
         toolStripStatusLabelUploadStatus.ForeColor = Color.Red;
         toolStripStatusLabelUploadStatus.Visible   = true;
     }
     if (Stick == null)
     {
         Stick = new FccHandeler();
         Stick.Connect();
     }
 }
Esempio n. 2
0
 private void UsbTimer_Tick(object sender, EventArgs e)
 {
     try
     {
         if (Stick == null)
         {
             Stick = new FccHandeler();
             RefreshUpdateTab();
         }
         if (!Stick.isConnected)
         {
             Stick.Connect();
             InitRefreshTimer();
         }
     }
     catch
     {
         Console.WriteLine("here we are");
     }
 }