private void OnSelectAndSetAsNewRoot(object sender, EventArgs e) { TaxonTreeNode selected = GetSelected(); TaxonUtils.CleanSubRoots(); TaxonUtils.PushSubRoot(selected); TaxonUtils.GotoTaxon(selected); TaxonUtils.SelectTaxon(selected); }
//-------------------------------------------------------------------------------------- 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()); }