Beispiel #1
0
        private void bGraphs_Click(object sender, EventArgs e)
        {
            //ThreadStart graphRef = new ThreadStart(graphThreadStart);
            // allThreads[threadCount] = new Thread(graphRef);
            // allThreads[threadCount].IsBackground = true;
            // allThreads[threadCount].Start();
            // threadCount++;
            // //Thread graphThread = new Thread(graphRef);
            // //graphThread.IsBackground = true;
            // //graphThread.Start();
            tabControl1.TabPages.Add(new TabPage("Graph" + tabCount.ToString()));
            Form frm = new GraphTemplate();

            frm.TopLevel        = false;
            frm.Visible         = true;
            frm.FormBorderStyle = FormBorderStyle.None;
            frm.Dock            = DockStyle.Fill;
            tabControl1.TabPages[tabCount].Controls.Add(frm);
            this.tabControl1.SelectedIndex = tabCount;
            tabCount++;
        }
Beispiel #2
0
        public static void graphThreadStart(object uniqueID)
        {
            GraphTemplate graph = new GraphTemplate(uniqueID.ToString());

            graph.ShowDialog();
        }
Beispiel #3
0
        public static void graphThreadStart()
        {
            GraphTemplate graph = new GraphTemplate();

            graph.ShowDialog();
        }