private void OnSelectAndSetAsNewRoot(object sender, EventArgs e) { TaxonTreeNode selected = GetSelected(); TaxonUtils.CleanSubRoots(); TaxonUtils.PushSubRoot(selected); TaxonUtils.GotoTaxon(selected); TaxonUtils.SelectTaxon(selected); }
public void ScriptCall(string _name, int _index) { if (_index >= 0 && _index < Owner._HtmlDivs.Count) { TaxonTreeNode node = Owner._HtmlDivs[_index].Taxon; if (node != null && _name == node.Desc.RefMainName) { TaxonUtils.GotoTaxon(node); } } }
//-------------------------------------------------------------------------------------- protected override void OnMouseDoubleClick(MouseEventArgs e) { if (MouseDoubleClickMode == MouseDoubleClickModeEnum.DoNothing) { return; } if (GetSelected() == null) { return; } TaxonUtils.GotoTaxon(GetSelected()); if (MouseDoubleClickMode == MouseDoubleClickModeEnum.SelectTaxon) { TaxonUtils.SelectTaxon(GetSelected()); } }
private void OnSelect(object sender, EventArgs e) { TaxonUtils.GotoTaxon(GetTag <TaxonTreeNode>(sender)); TaxonUtils.SelectTaxon(GetTag <TaxonTreeNode>(sender)); }
private void OnSelect(object sender, EventArgs e) { TaxonUtils.GotoTaxon(GetSelected()); TaxonUtils.SelectTaxon(GetSelected()); }