Пример #1
0
        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);
        }
Пример #2
0
        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);
            }
        }
Пример #3
0
        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);
        }
Пример #4
0
        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);
              }
        }