private void SearchAndCompare()
        {
            FrmMigrationCompare frmMigrationCompare = new FrmMigrationCompare();

            if (frmMigrationCompare.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            foreach (ToolStripMenuItem dropDownItem in filesWithDifferancesToolStripMenuItem.DropDownItems)
            {
                filesWithDifferancesToolStripMenuItem.DropDownItems.RemoveByKey(dropDownItem.Name);
            }

            // create menuitems for each file
            foreach (FileInfo fileInfo in frmMigrationCompare.FileNames)
            {
                ToolStripMenuItem tsmi = new ToolStripMenuItem
                {
                    Tag  = fileInfo,
                    Text = fileInfo.Name
                };
                tsmi.Click += Tsmi_Click;
                filesWithDifferancesToolStripMenuItem.DropDownItems.Add(tsmi);
            }
        }
        private void SearchAndCompare()
        {
            FrmMigrationCompare frmMigrationCompare = new FrmMigrationCompare();
            if (frmMigrationCompare.ShowDialog() != DialogResult.OK) return;

            foreach (ToolStripMenuItem dropDownItem in filesWithDifferancesToolStripMenuItem.DropDownItems)
            {
                filesWithDifferancesToolStripMenuItem.DropDownItems.RemoveByKey(dropDownItem.Name);
            }

            // create menuitems for each file
            foreach (FileInfo fileInfo in frmMigrationCompare.FileNames)
            {
                ToolStripMenuItem tsmi = new ToolStripMenuItem
                {
                    Tag = fileInfo,
                    Text = fileInfo.Name
                };
                tsmi.Click += Tsmi_Click;
                filesWithDifferancesToolStripMenuItem.DropDownItems.Add(tsmi);

            }
        }