コード例 #1
0
        async private void LoadButton_Click(object sender, EventArgs e)
        {
            FolderBrowserDialog fbd = new FolderBrowserDialog();

            if (fbd.ShowDialog() == DialogResult.OK)
            {
                ClearTemp();
                this.FolderPath = fbd.SelectedPath;
                this.Paths      = await CompareHelpers.GetAllImagesPaths(fbd.SelectedPath);
            }
            fbd.Dispose();
        }
コード例 #2
0
        async private void MakeStuffButton_Click(object sender, EventArgs e)
        {
            if (this.isChecked)
            {
                return;
            }

            this.MakeStuffButton.Enabled = false;
            this.isChecked = true;

            (this.DarkHashes, this.LightHashes) = await CompareHelpers.SetFingerPrintsIntoDictionary(Paths);

            this.Paths = null;

            await CompareHelpers.CompareFingerPrints(this.LightHashes, this.Matches);

            await CompareHelpers.CompareFingerPrints(this.DarkHashes, this.Matches);

            this.BeginInvoke((ThreadStart)async delegate()
            {
                this.ResultLabel.Text = await this.SetMatchesIntoLV();
            });
        }