private void SearchAndReplaceForm_FormClosed(object sender, FormClosedEventArgs e) { if (_searchAndReplaceFormClosed != null) { _searchAndReplaceFormClosed(this, e); } _instance = null; }
public static void ShowSearchAndReplaceForm(SearchAndReplaceDialogMode mode) { if (_instance == null) { _instance = new SearchAndReplaceForm(); _instance.Owner = Program.MainForm; } _mode = mode; ValidateMode(_mode); _instance.Show(); }