//------------------------------------------------------------------- public TaxonControl() { if (DesignMode) { return; } SetStyle(ControlStyles.OptimizedDoubleBuffer, true); TaxonControlList.RegisterTaxonControl(this); }
//------------------------------------------------------------------- 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); } }
//------------------------------------------------------------------- protected virtual void OnClose() { TaxonControlList.UnregisterTaxonControl(this); }