public void AddTabPage(ImgTabPage imgTabPage) { Imagtabs.Add(imgTabPage); imgTabPage.TabPageSelected += new SelecteChage(imgTabPage_TabPageSelected); imgTabPage.Id = Imagtabs.Count-1; _TopContext.Controls.Add(imgTabPage.PicTureBox); imgTabPage.PicTureBox.Location = BtnLastLocation; if (Imagtabs.Count == 1) { imgTabPage.ConTextPane.Visible=true; } _PContext.Controls.Add(imgTabPage.ConTextPane); BtnLastLocation = imgTabPage.PicTureBox.Location; BtnLastLocation.X = BtnLastLocation.X + imgTabPage.PicTureBox.Width + 1; imgTabPage.ConTextPane.Dock = DockStyle.Fill; }
public void AddTabPage(ImgTabPage imgTabPage) { Imagtabs.Add(imgTabPage); imgTabPage.TabPageSelected += new SelecteChage(imgTabPage_TabPageSelected); imgTabPage.Id = Imagtabs.Count - 1; _TopContext.Controls.Add(imgTabPage.PicTureBox); imgTabPage.PicTureBox.Location = BtnLastLocation; if (Imagtabs.Count == 1) { imgTabPage.ConTextPane.Visible = true; } _PContext.Controls.Add(imgTabPage.ConTextPane); BtnLastLocation = imgTabPage.PicTureBox.Location; BtnLastLocation.X = BtnLastLocation.X + imgTabPage.PicTureBox.Width + 1; imgTabPage.ConTextPane.Dock = DockStyle.Fill; }