private void AddGraph() { TaxonGraphPanel graph = null; //panel1.Controls.Clear(); ControlContainerTabs tabControl = null; foreach (Control control in panel1.Controls) { if (control is ControlContainerTabs) { tabControl = control as ControlContainerTabs; break; } } if (tabControl == null) { tabControl = new ControlContainerTabs(); tabControl.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; tabControl.Dock = System.Windows.Forms.DockStyle.Fill; tabControl.Current = null; tabControl.ShowHeaderWhenOnlyOne = false; tabControl.TabIndex = 0; panel1.Controls.Add(tabControl); } graph = new TaxonGraphPanel(); TaxonGraph trueGraph = new TaxonGraph(); trueGraph.Root = TaxonUtils.Root; tabControl.Add(trueGraph); }
//========================================================================================= // Taxon graph // //--------------------------------------------------------------------------------- private void taxonGraph_AddOneIfNone() { TaxonGraphPanel graph = TaxonControlList.FindTaxonControl <TaxonGraphPanel>(); // create main taxon graph if (graph == null) { AddGraph(); } }
public TaxonGraphEditionTool(TaxonGraphPanel _owner) { Owner = _owner; }
// public InertiaMove(TaxonGraphPanel _owner) { _Owner = _owner; ResetAll(); }