Exemple #1
0
        private void OnSelectAndSetAsNewRoot(object sender, EventArgs e)
        {
            TaxonTreeNode selected = GetSelected();

            TaxonUtils.CleanSubRoots();
            TaxonUtils.PushSubRoot(selected);
            TaxonUtils.GotoTaxon(selected);
            TaxonUtils.SelectTaxon(selected);
        }
Exemple #2
0
        //--------------------------------------------------------------------------------------
        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));
 }
Exemple #4
0
 private void OnSelect(object sender, EventArgs e)
 {
     TaxonUtils.GotoTaxon(GetSelected()); TaxonUtils.SelectTaxon(GetSelected());
 }