Exemple #1
0
        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);
        }
Exemple #2
0
        //=========================================================================================
        // Taxon graph
        //

        //---------------------------------------------------------------------------------
        private void taxonGraph_AddOneIfNone()
        {
            TaxonGraphPanel graph = TaxonControlList.FindTaxonControl <TaxonGraphPanel>();

            // create main taxon graph
            if (graph == null)
            {
                AddGraph();
            }
        }
Exemple #3
0
 public TaxonGraphEditionTool(TaxonGraphPanel _owner)
 {
     Owner = _owner;
 }
Exemple #4
0
 //
 public InertiaMove(TaxonGraphPanel _owner)
 {
     _Owner = _owner;
     ResetAll();
 }