private void takeSnapshotButton_Click(object sender, EventArgs e) { TaskOptions options; string[] keys; string path; keys = this.GetKeysToScan(); path = PathHelpers.GetFullPath(outputFolderTextBox.Text); this.SetStatus("Taking snapshot..."); options = new TaskOptions { Keys = keys, OutputPath = path }; snapshotBackgroundWorker.RunWorkerAsync(options); }
private void compareButton_Click(object sender, EventArgs e) { if (firstComboBox.SelectedItem == null || secondComboBox.SelectedItem == null) { MessageBox.Show("Please select two snapshots to compare.", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information); } else { TaskOptions options; this.SetStatus("Comparing snapshots..."); options = new TaskOptions { FileName1 = ((FileInfo)firstComboBox.SelectedItem).FullPath, FileName2 = ((FileInfo)secondComboBox.SelectedItem).FullPath }; compareBackgroundWorker.RunWorkerAsync(options); } }
private void compareButton_Click(object sender, EventArgs e) { if (firstComboBox.SelectedItem == null || secondComboBox.SelectedItem == null) { MessageBox.Show("Please select two snapsnots to compare.", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information); } else { TaskOptions options; this.SetStatus("Comparing snapshots..."); options = new TaskOptions { FileName1 = ((FileInfo)firstComboBox.SelectedItem).FullPath, FileName2 = ((FileInfo)secondComboBox.SelectedItem).FullPath }; compareBackgroundWorker.RunWorkerAsync(options); } }