LayoutTabPage CreateNewLayoutTabPage(string name, Button buttonTemplate = null, TabControl tabsTemplate = null) { var tp = new LayoutTabPage { Text = name, Name = name }; var p = new Panel { Dock = DockStyle.Fill }; if (buttonTemplate != null) { var newButton = CreateNewButton(buttonTemplate, p); p.Controls.Add(newButton); } if (tabsTemplate != null) { var newTabControl = CreateNewTabControl(tabsTemplate); p.Controls.Add(newTabControl); } tp.Controls.Add(p); return(tp); }
internal LayoutTabsViewModel(LayoutTabPage selectedIndex) { _selectedIndex = selectedIndex; this.Summary = new CustomerSummaryModel(); }