private void SaveToolStripMenuItem_Click(object sender, EventArgs e) { if (TabControl1.TabCount > 0) { ChartGridControl1 = (ChartGridControl.ChartGridControl)TabControl1.SelectedTab.Tag; ChartGridControl1.B_Save_Click(sender, e); } }
private void addToolStripMenuItem_Click(object sender, EventArgs e) { if (TabControl1.TabCount > 0) { ChartGridControl1 = (ChartGridControl.ChartGridControl)TabControl1.SelectedTab.Tag; ChartGridControl1.B_Add_Click(sender, e); } }
private void addTab(string name = "New Tab") { ChartGridControl1 = new ChartGridControl.ChartGridControl(); ChartGridControl1.Dock = DockStyle.Fill; System.Windows.Forms.TabPage G_ObjectTab; G_ObjectTab = new System.Windows.Forms.TabPage(name); G_ObjectTab.Controls.Add(ChartGridControl1); G_ObjectTab.Tag = ChartGridControl1; TabControl1.TabPages.Add(G_ObjectTab); }
private void addTab(string name = "New Tab") { ChartGridControl1 = new ChartGridControl.ChartGridControl(); ChartGridControl1.Dock = DockStyle.Fill; System.Windows.Forms.TabPage G_ObjectTab; G_ObjectTab = new System.Windows.Forms.TabPage(name); G_ObjectTab.Controls.Add(ChartGridControl1); G_ObjectTab.Tag = ChartGridControl1; TabControl1.TabPages.Add(G_ObjectTab); }