public FindInFilesForm(bool findOnly) { // Allow client applications to modify the form. FindInFilesFormProxy.GetInstance().UpdateFormControls(Controls); _findOnly = findOnly; InitializeComponent(); if (findOnly) { _replaceWithLabel.Visible = false; _replaceTextComboBox.Visible = false; _lookInLabel.Location = new Point(12, 49); _fileSpecComboBox.Location = new Point(15, 65); } else { Text = Resources.FindDialogReplaceTitle; _findButton.Text = Resources.FindDialogButtonReplace; _matchCaseCheckBox.Visible = false; } UpdateCheckBoxes(); }
public static FindInFilesFormProxy GetInstance() { if (_singleton == null) { _singleton = new FindInFilesFormProxy(); } return(_singleton); }