public FormSearch(FormSearch old, ISite site) : this() { if (old != null) { this.comboBoxFilter.SelectedItem = old.comboBoxFilter.SelectedItem; } this.Site = site; }
public FormSearch(FormSearch old, ISite site) : this() { if (old != null){ foreach (string s in old.comboBoxFind.Items){ this.comboBoxFind.Items.Add(s); } this.comboBoxFilter.SelectedItem = old.comboBoxFilter.SelectedItem; } this.Site = site; }
public FormSearch(FormSearch old, ISite site) : this() { if (old != null) { foreach (string s in old.comboBoxFind.Items) { this.comboBoxFind.Items.Add(s); } this.comboBoxFilter.SelectedItem = old.comboBoxFilter.SelectedItem; } this.Site = site; }
void Search(bool replace) { if (this.tabControlViews.SelectedTab == this.tabPageHtmlView) { // this.xsltViewer.Find(); return; } if (search == null || !search.Visible) { search = new FormSearch(search, (ISite)this); } else { search.Activate(); } search.Target = new XmlTreeViewFindTarget(this.xmlTreeView1); search.ReplaceMode = replace; if (!search.Visible) { search.Show(this); // modeless } }