public void CreatePageForContour(Contour contour) { var page = new TabPage { Size = new Size(_control.Width - 8, _control.Height - 26), Text = string.Format("Контур {0}", contour.Index) }; var grid = new ContourDataGridView{Size = new Size(page.Width, page.Height), DataSource = contour}; page.Controls.Add(grid); _control.TabPages.Add(page); }
public void CreatePageForContour(Contour contour) { var page = new TabPage { Size = new Size(_control.Width - 8, _control.Height - 26), Text = string.Format("Контур {0}", contour.Index) }; var grid = new ContourDataGridView { Size = new Size(page.Width, page.Height), DataSource = contour }; page.Controls.Add(grid); _control.TabPages.Add(page); }