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); } }
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."); } }