コード例 #1
0
ファイル: MainForm.cs プロジェクト: rioka/RegistryComparer
        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
ファイル: MainForm.cs プロジェクト: rioka/RegistryComparer
        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
ファイル: MainForm.cs プロジェクト: cyotek/RegistryComparer
        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
ファイル: MainForm.cs プロジェクト: cyotek/RegistryComparer
        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);
              }
        }