コード例 #1
0
 private void SearchAndReplaceForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (_searchAndReplaceFormClosed != null)
     {
         _searchAndReplaceFormClosed(this, e);
     }
     _instance = null;
 }
コード例 #2
0
        public static void ShowSearchAndReplaceForm(SearchAndReplaceDialogMode mode)
        {
            if (_instance == null)
            {
                _instance       = new SearchAndReplaceForm();
                _instance.Owner = Program.MainForm;
            }

            _mode = mode;
            ValidateMode(_mode);
            _instance.Show();
        }