Пример #1
0
 //-------------------------------------------------------------------
 public TaxonControl()
 {
     if (DesignMode)
     {
         return;
     }
     SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
     TaxonControlList.RegisterTaxonControl(this);
 }
Пример #2
0
        //-------------------------------------------------------------------
        protected override void OnLoad(EventArgs e)
        {
            TaxonControlList.InitTaxonControlOnLoad(this);
            ApplyTheme();
            base.OnLoad(e);
            if (ParentForm != null)
            {
                ParentForm.FormClosed += ParentForm_FormClosed;
            }

            SetRoot(TaxonUtils.Root);
            if (!(this is TaxonGraphPanel) && TaxonUtils.MainGraph != null)
            {
                OnSelectTaxon(TaxonUtils.MainGraph.Selected);
            }
        }
Пример #3
0
 //-------------------------------------------------------------------
 protected virtual void OnClose()
 {
     TaxonControlList.UnregisterTaxonControl(this);
 }