Exemple #1
0
 public FindReplaceForm(FormType formType)
 {
     InitializeComponent();
     this.formType      = formType;
     this.ActiveControl = this.tbTextToFind;
     if (formType == FormType.Find)
     {
         this.AcceptButton            = this.btFindNext;
         this.tbTextToReplace.Visible = false;
         this.lReplaceTo.Visible      = false;
         this.btReplace.Visible       = false;
         this.btReplaceAll.Visible    = false;
     }
     else
     {
         this.AcceptButton = this.btReplace;
         AddOwnedForm(ReplaceConfirmDlg = new ReplaceConfirmDialog());
         PascalABCCompiler.StringResources.SetTextForAllObjects(ReplaceConfirmDlg, "VP_REPLACECONFIRMDLGFORM_");
     }
 }
Exemple #2
0
 public FindReplaceForm(FormType formType)
 {
     InitializeComponent();
     this.formType = formType;
     this.ActiveControl = this.tbTextToFind;
     if (formType == FormType.Find)
     {
         this.AcceptButton = this.btFindNext;
         this.tbTextToReplace.Visible = false;
         this.lReplaceTo.Visible = false;
         this.btReplace.Visible = false;
         this.btReplaceAll.Visible = false;
     }
     else
     {
         this.AcceptButton = this.btReplace;
         AddOwnedForm(ReplaceConfirmDlg = new ReplaceConfirmDialog());
         PascalABCCompiler.StringResources.SetTextForAllObjects(ReplaceConfirmDlg, "VP_REPLACECONFIRMDLGFORM_");
     }
 }