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

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