void currentPlugin_OnResultReceived(object sender, EventArgs e) { UpdateTextBox(FeedbackTextBox, currentPlugin.Result); if (string.IsNullOrEmpty(currentPlugin.TrackingNumber)) { WriteLog("No tracking number received.", Color.Red); CurrentProcessStatusLabel.Text = "No tracking number received."; } else { if (UpdateTrackingNumber()) { if (!String.IsNullOrEmpty(Settings.ArchivePath)) { FileOperations.ArchiveFile(currentFile, Settings.ArchivePath); } else { FileOperations.DeleteFile(currentFile); } PreviewTextbox.Clear(); FeedbackTextBox.Clear(); CheckButton.Enabled = true; currentPlugin = null; } } }
private void skipButton_Click(object sender, EventArgs e) { StopAsyncTasks(); //Archive File. if (!String.IsNullOrEmpty(Settings.ArchivePath) && !String.IsNullOrEmpty(currentFile)) { FileOperations.ArchiveFile(currentFile, Settings.ArchivePath); } else { FileOperations.DeleteFile(currentFile); } PreviewTextbox.Clear(); FeedbackTextBox.Clear(); CheckButton.Enabled = true; currentPlugin = null; }