void FindDialog_Closed(object sender, EventArgs e)
 {
     FindDialog = null;
 }
 void EnsureFindDialogExists()
 {
     if (FindDialog == null)
     {
         FindDialog = new Editor.FindReplaceDialog();
         FindDialog.txtCode = txtCode;
         FindDialog.Closed += new EventHandler(FindDialog_Closed); ;
     }
 }