예제 #1
0
 private void BWCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     PBMain.Value = 0;
     if (e.Error != null)
     {
         RTAStatus.Append(e.Error.ToString(), true);
     }
     else
     {
         RTAStatus.Append("Successful upload to port " + SelectedPort + " with file " + SelectedFile, true);
     }
 }
예제 #2
0
 private void BtnUploadClicked()
 {
     if (File.Exists(SelectedFile))
     {
         RTAStatus.Append("Upload Started to port " + SelectedFile + " with file " + SelectedFile);
         bw.RunWorkerAsync();
     }
     else
     {
         MessageBox.Show("Arbites cannot find the selected .hex file, please make sure the .hex file exists.");
     }
 }