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_"); } }