/// <summary> /// Search dialog box /// </summary> /// <param name="tv">TreeView to search</param> /// <param name="findSpec">The find specification for repeated searches</param> public FormFind(TreeView tv, FindSpec findSpec) { // // Required for Windows Form Designer support // InitializeComponent(); this.tv = tv; this.findSpec = findSpec; justFound = false; // has found just been successful - used for replace this.textBoxFind.Text = this.findSpec.SearchFor; this.checkBoxIgnoreCase.Checked = this.findSpec.IgnoreCase; textBoxFind.SelectAll(); }
/// <summary> /// Copy FindSpec object /// </summary> /// <returns>Copy of FindSpec object</returns> public FindSpec CopySpec() { FindSpec fs = new FindSpec(searchFor, tv, ignoreCase); return(fs); }