private void FixIndexes() { using (var dlg = new FixIndexesDialog()) { dlg.Actions = GetActions(); if (dlg.ShowDialog(this) != DialogResult.OK) { return; } } using (var dlg = new FixProgressDialog()) { dlg.Actions = GetActions(); dlg.IndexDataProvider = indexDataProvider; if (dlg.ShowDialog(this) == DialogResult.OK) { CheckIndexes(); SelectFilter(allIndexesToolStripMenuItem); } } }