public TabContainer(TabControl tabControl, DataArea tabs) { m_tabNames = new List<string>(); m_UDGVRefs = new List<UserDataGridView>(); m_tabControl = tabControl; int i = 0; for (i = 0; i < tabs.m_tabs.Count; ++i) { TabArea tab = tabs.m_tabs[i]; TabPage tp = new TabPage(tab.m_name); m_tabControl.Controls.Add(tp); m_tabNames.Add(tab.m_name); tp.BackColor = Color.Gray; Rectangle r = tp.ClientRectangle; UserDataGridView dgv = new UserDataGridView(tab.m_table); m_UDGVRefs.Add(dgv); tp.Controls.Add(dgv); //tp.Select(); } }
public TabContainer(TabControl tabControl, DataArea tabs) { m_tabNames = new List <string>(); m_UDGVRefs = new List <UserDataGridView>(); m_tabControl = tabControl; int i = 0; for (i = 0; i < tabs.m_tabs.Count; ++i) { TabArea tab = tabs.m_tabs[i]; TabPage tp = new TabPage(tab.m_name); m_tabControl.Controls.Add(tp); m_tabNames.Add(tab.m_name); tp.BackColor = Color.Gray; Rectangle r = tp.ClientRectangle; UserDataGridView dgv = new UserDataGridView(tab.m_table); m_UDGVRefs.Add(dgv); tp.Controls.Add(dgv); //tp.Select(); } }