Exemplo n.º 1
0
        private void testFullFilenameListToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (!SetOperationRunning())
            {
                return;
            }

            openArchiveDialog.Filter = "File containing full filenames to test|*.txt";
            if (openArchiveDialog.ShowDialog() == DialogResult.OK)
            {
                // supposed to be small enough to avoid threading.
                long newlyFound = hashCreator.ParseFilenames(openArchiveDialog.FileName);
                if (newlyFound != 0)
                {
                    MessageBox.Show("You just found " + newlyFound + " new filenames.", "Newly found filenames!", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                }
                else
                {
                    MessageBox.Show("No new filenames.", "No new filenames", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
            }

            OperationFinished();
        }