public PropertiesView() { var props = new ProjectProperties(); props.Dock = System.Windows.Forms.DockStyle.Fill; var tp = new TabPage(); tp.Controls.Add(new System.Windows.Forms.Button()); var ti = new TabItem("General", tp); props.TabItems.Add(ti); props.TabItems.Add(new TabItem("Signing")); props.TabItems.Add(new TabItem("Reference Paths")); props.TabItems.Add(new TabItem("Build Events")); props.TabItems.Add(new TabItem("Build")); props.TabItems.Add(new TabItem("Debug")); foreach (TabItem item in props.TabItems) { item.ForeColor = System.Drawing.Color.FromArgb(37, 37, 38); } _view = props; }
/// <summary> /// Inzialize a new Istance of the control /// </summary> /// <param name="text"></param> /// <param name="TabControl"></param> public TabItem(string text, TabPage TabControl) : this(text) { TabPageControl = TabControl; }