diff --git a/Enigma/StationsGUI/AdminStationView.Designer.cs b/Enigma/StationsGUI/AdminStationView.Designer.cs index 0f05cd7..679a287 100644 --- a/Enigma/StationsGUI/AdminStationView.Designer.cs +++ b/Enigma/StationsGUI/AdminStationView.Designer.cs @@ -30,22 +30,27 @@ private void InitializeComponent() { this.adminTabControl = new MetroFramework.Controls.MetroTabControl(); this.menuTab = new MetroFramework.Controls.MetroTabPage(); - this.itemsTab = new MetroFramework.Controls.MetroTabPage(); - this.employeeTab = new MetroFramework.Controls.MetroTabPage(); - this.menuTabBar = new MetroFramework.Controls.MetroTabControl(); - this.metroLabel1 = new MetroFramework.Controls.MetroLabel(); - this.dummyTab = new MetroFramework.Controls.MetroTabPage(); - this.metroButton1 = new MetroFramework.Controls.MetroButton(); - this.menuGroup1 = new System.Windows.Forms.GroupBox(); - this.metroButton2 = new MetroFramework.Controls.MetroButton(); - this.metroButton3 = new MetroFramework.Controls.MetroButton(); + this.menuSaveButton = new MetroFramework.Controls.MetroButton(); + this.menuRevertButton = new MetroFramework.Controls.MetroButton(); this.groupBox1 = new System.Windows.Forms.GroupBox(); - this.displayedOnDevices = new System.Windows.Forms.ListBox(); this.label1 = new System.Windows.Forms.Label(); - this.stationTab = new MetroFramework.Controls.MetroTabPage(); - this.tabMenuBox = new System.Windows.Forms.ListBox(); + this.displayedOnDevices = new System.Windows.Forms.ListBox(); + this.menuGroup1 = new System.Windows.Forms.GroupBox(); + this.metroButton3 = new MetroFramework.Controls.MetroButton(); + this.metroButton2 = new MetroFramework.Controls.MetroButton(); + this.metroButton1 = new MetroFramework.Controls.MetroButton(); + this.metroLabel1 = new MetroFramework.Controls.MetroLabel(); + this.itemsTab = new MetroFramework.Controls.MetroTabPage(); + this.itemsSaveButton = new MetroFramework.Controls.MetroButton(); this.itemListBox = new System.Windows.Forms.ListBox(); + this.itemsRevertButton = new MetroFramework.Controls.MetroButton(); this.groupBox2 = new System.Windows.Forms.GroupBox(); + this.itemPrice = new System.Windows.Forms.NumericUpDown(); + this.itemDescriptionTextbox = new MetroFramework.Controls.MetroTextBox(); + this.label5 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.printingListBox = new System.Windows.Forms.ListBox(); + this.label3 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.categoryListBox = new System.Windows.Forms.ListBox(); this.groupBox3 = new System.Windows.Forms.GroupBox(); @@ -53,16 +58,26 @@ private void InitializeComponent() this.renameItemButton = new MetroFramework.Controls.MetroButton(); this.addItemButton = new MetroFramework.Controls.MetroButton(); this.metroLabel2 = new MetroFramework.Controls.MetroLabel(); - this.label3 = new System.Windows.Forms.Label(); - this.printingListBox = new System.Windows.Forms.ListBox(); - this.label4 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.itemDescriptionTextbox = new MetroFramework.Controls.MetroTextBox(); - this.menuRevertButton = new MetroFramework.Controls.MetroButton(); - this.menuSaveButton = new MetroFramework.Controls.MetroButton(); - this.itemsSaveButton = new MetroFramework.Controls.MetroButton(); - this.itemsRevertButton = new MetroFramework.Controls.MetroButton(); - this.itemPrice = new System.Windows.Forms.NumericUpDown(); + this.employeeTab = new MetroFramework.Controls.MetroTabPage(); + this.metroButton4 = new MetroFramework.Controls.MetroButton(); + this.metroButton5 = new MetroFramework.Controls.MetroButton(); + this.employeeListBox = new System.Windows.Forms.ListBox(); + this.groupBox6 = new System.Windows.Forms.GroupBox(); + this.lastNameTextBox = new MetroFramework.Controls.MetroTextBox(); + this.label11 = new System.Windows.Forms.Label(); + this.firstNameTextBox = new MetroFramework.Controls.MetroTextBox(); + this.label10 = new System.Windows.Forms.Label(); + this.pinNumber = new System.Windows.Forms.NumericUpDown(); + this.usernameTextBox = new MetroFramework.Controls.MetroTextBox(); + this.pin = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.listBox2 = new System.Windows.Forms.ListBox(); + this.groupBox7 = new System.Windows.Forms.GroupBox(); + this.employeeRemoveButton = new MetroFramework.Controls.MetroButton(); + this.employeeAddButton = new MetroFramework.Controls.MetroButton(); + this.metroLabel4 = new MetroFramework.Controls.MetroLabel(); + this.stationTab = new MetroFramework.Controls.MetroTabPage(); this.stationSaveButton = new MetroFramework.Controls.MetroButton(); this.stationRevertButton = new MetroFramework.Controls.MetroButton(); this.stationListBox = new System.Windows.Forms.ListBox(); @@ -74,42 +89,23 @@ private void InitializeComponent() this.stationRenameButton = new MetroFramework.Controls.MetroButton(); this.stationAddButton = new MetroFramework.Controls.MetroButton(); this.metroLabel3 = new MetroFramework.Controls.MetroLabel(); - this.metroButton4 = new MetroFramework.Controls.MetroButton(); - this.metroButton5 = new MetroFramework.Controls.MetroButton(); - this.employeeListBox = new System.Windows.Forms.ListBox(); - this.groupBox6 = new System.Windows.Forms.GroupBox(); - this.label7 = new System.Windows.Forms.Label(); - this.listBox2 = new System.Windows.Forms.ListBox(); - this.groupBox7 = new System.Windows.Forms.GroupBox(); - this.employeeRemoveButton = new MetroFramework.Controls.MetroButton(); - this.employeeAddButton = new MetroFramework.Controls.MetroButton(); - this.metroLabel4 = new MetroFramework.Controls.MetroLabel(); - this.pinNumber = new System.Windows.Forms.NumericUpDown(); - this.usernameTextBox = new MetroFramework.Controls.MetroTextBox(); - this.pin = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.firstNameTextBox = new MetroFramework.Controls.MetroTextBox(); - this.label10 = new System.Windows.Forms.Label(); - this.lastNameTextBox = new MetroFramework.Controls.MetroTextBox(); - this.label11 = new System.Windows.Forms.Label(); - this.metroTabPage1 = new MetroFramework.Controls.MetroTabPage(); - this.metroTabPage2 = new MetroFramework.Controls.MetroTabPage(); + this.menuSelectionBox = new MetroFramework.Controls.MetroComboBox(); + this.menuListBox = new System.Windows.Forms.ListBox(); this.adminTabControl.SuspendLayout(); this.menuTab.SuspendLayout(); - this.itemsTab.SuspendLayout(); - this.employeeTab.SuspendLayout(); - this.menuTabBar.SuspendLayout(); - this.menuGroup1.SuspendLayout(); this.groupBox1.SuspendLayout(); - this.stationTab.SuspendLayout(); + this.menuGroup1.SuspendLayout(); + this.itemsTab.SuspendLayout(); this.groupBox2.SuspendLayout(); - this.groupBox3.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.itemPrice)).BeginInit(); - this.groupBox4.SuspendLayout(); - this.groupBox5.SuspendLayout(); + this.groupBox3.SuspendLayout(); + this.employeeTab.SuspendLayout(); this.groupBox6.SuspendLayout(); - this.groupBox7.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pinNumber)).BeginInit(); + this.groupBox7.SuspendLayout(); + this.stationTab.SuspendLayout(); + this.groupBox4.SuspendLayout(); + this.groupBox5.SuspendLayout(); this.SuspendLayout(); // // adminTabControl @@ -130,13 +126,13 @@ private void InitializeComponent() // // menuTab // + this.menuTab.Controls.Add(this.menuListBox); + this.menuTab.Controls.Add(this.menuSelectionBox); this.menuTab.Controls.Add(this.menuSaveButton); this.menuTab.Controls.Add(this.menuRevertButton); - this.menuTab.Controls.Add(this.tabMenuBox); this.menuTab.Controls.Add(this.groupBox1); this.menuTab.Controls.Add(this.menuGroup1); this.menuTab.Controls.Add(this.metroLabel1); - this.menuTab.Controls.Add(this.menuTabBar); this.menuTab.HorizontalScrollbarBarColor = true; this.menuTab.HorizontalScrollbarHighlightOnWheel = false; this.menuTab.HorizontalScrollbarSize = 10; @@ -149,98 +145,72 @@ private void InitializeComponent() this.menuTab.VerticalScrollbarHighlightOnWheel = false; this.menuTab.VerticalScrollbarSize = 10; // - // itemsTab - // - this.itemsTab.Controls.Add(this.itemsSaveButton); - this.itemsTab.Controls.Add(this.itemListBox); - this.itemsTab.Controls.Add(this.itemsRevertButton); - this.itemsTab.Controls.Add(this.groupBox2); - this.itemsTab.Controls.Add(this.groupBox3); - this.itemsTab.Controls.Add(this.metroLabel2); - this.itemsTab.HorizontalScrollbarBarColor = true; - this.itemsTab.HorizontalScrollbarHighlightOnWheel = false; - this.itemsTab.HorizontalScrollbarSize = 10; - this.itemsTab.Location = new System.Drawing.Point(4, 38); - this.itemsTab.Name = "itemsTab"; - this.itemsTab.Size = new System.Drawing.Size(1360, 790); - this.itemsTab.TabIndex = 1; - this.itemsTab.Text = "Edit Items"; - this.itemsTab.VerticalScrollbarBarColor = true; - this.itemsTab.VerticalScrollbarHighlightOnWheel = false; - this.itemsTab.VerticalScrollbarSize = 10; - // - // employeeTab + // menuSaveButton // - this.employeeTab.Controls.Add(this.metroButton4); - this.employeeTab.Controls.Add(this.metroButton5); - this.employeeTab.Controls.Add(this.employeeListBox); - this.employeeTab.Controls.Add(this.groupBox6); - this.employeeTab.Controls.Add(this.groupBox7); - this.employeeTab.Controls.Add(this.metroLabel4); - this.employeeTab.HorizontalScrollbarBarColor = true; - this.employeeTab.HorizontalScrollbarHighlightOnWheel = false; - this.employeeTab.HorizontalScrollbarSize = 10; - this.employeeTab.Location = new System.Drawing.Point(4, 38); - this.employeeTab.Name = "employeeTab"; - this.employeeTab.Size = new System.Drawing.Size(1360, 790); - this.employeeTab.TabIndex = 2; - this.employeeTab.Text = "Edit Employees"; - this.employeeTab.VerticalScrollbarBarColor = true; - this.employeeTab.VerticalScrollbarHighlightOnWheel = false; - this.employeeTab.VerticalScrollbarSize = 10; + this.menuSaveButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.menuSaveButton.FontSize = MetroFramework.MetroButtonSize.Tall; + this.menuSaveButton.FontWeight = MetroFramework.MetroButtonWeight.Regular; + this.menuSaveButton.Location = new System.Drawing.Point(1038, 711); + this.menuSaveButton.Name = "menuSaveButton"; + this.menuSaveButton.Size = new System.Drawing.Size(298, 45); + this.menuSaveButton.TabIndex = 9; + this.menuSaveButton.Text = "Save"; + this.menuSaveButton.UseSelectable = true; // - // menuTabBar + // menuRevertButton // - this.menuTabBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.menuTabBar.Controls.Add(this.dummyTab); - this.menuTabBar.Controls.Add(this.metroTabPage1); - this.menuTabBar.Controls.Add(this.metroTabPage2); - this.menuTabBar.Location = new System.Drawing.Point(3, 63); - this.menuTabBar.Name = "menuTabBar"; - this.menuTabBar.SelectedIndex = 2; - this.menuTabBar.Size = new System.Drawing.Size(704, 42); - this.menuTabBar.TabIndex = 2; - this.menuTabBar.UseSelectable = true; + this.menuRevertButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.menuRevertButton.FontSize = MetroFramework.MetroButtonSize.Tall; + this.menuRevertButton.FontWeight = MetroFramework.MetroButtonWeight.Regular; + this.menuRevertButton.Location = new System.Drawing.Point(741, 712); + this.menuRevertButton.Name = "menuRevertButton"; + this.menuRevertButton.Size = new System.Drawing.Size(291, 45); + this.menuRevertButton.TabIndex = 8; + this.menuRevertButton.Text = "Revert"; + this.menuRevertButton.UseSelectable = true; // - // metroLabel1 + // groupBox1 // - this.metroLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Right))); - this.metroLabel1.FontSize = MetroFramework.MetroLabelSize.Tall; - this.metroLabel1.Location = new System.Drawing.Point(3, 23); - this.metroLabel1.Name = "metroLabel1"; - this.metroLabel1.Size = new System.Drawing.Size(700, 37); - this.metroLabel1.TabIndex = 3; - this.metroLabel1.Text = "Select Menu"; - this.metroLabel1.TextAlign = System.Drawing.ContentAlignment.BottomLeft; + this.groupBox1.BackColor = System.Drawing.Color.Transparent; + this.groupBox1.Controls.Add(this.label1); + this.groupBox1.Controls.Add(this.displayedOnDevices); + this.groupBox1.Font = new System.Drawing.Font("Segoe UI Light", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.groupBox1.Location = new System.Drawing.Point(741, 287); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Padding = new System.Windows.Forms.Padding(8); + this.groupBox1.Size = new System.Drawing.Size(595, 418); + this.groupBox1.TabIndex = 7; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "Options"; // - // dummyTab + // label1 // - this.dummyTab.HorizontalScrollbarBarColor = true; - this.dummyTab.HorizontalScrollbarHighlightOnWheel = false; - this.dummyTab.HorizontalScrollbarSize = 10; - this.dummyTab.Location = new System.Drawing.Point(4, 38); - this.dummyTab.Name = "dummyTab"; - this.dummyTab.Size = new System.Drawing.Size(696, 0); - this.dummyTab.TabIndex = 0; - this.dummyTab.Text = "dummy Tab"; - this.dummyTab.VerticalScrollbarBarColor = true; - this.dummyTab.VerticalScrollbarHighlightOnWheel = false; - this.dummyTab.VerticalScrollbarSize = 10; + this.label1.Location = new System.Drawing.Point(6, 35); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(171, 36); + this.label1.TabIndex = 1; + this.label1.Text = "Display Menu On:"; // - // metroButton1 + // displayedOnDevices // - this.metroButton1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + this.displayedOnDevices.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.metroButton1.FontSize = MetroFramework.MetroButtonSize.Tall; - this.metroButton1.FontWeight = MetroFramework.MetroButtonWeight.Regular; - this.metroButton1.Location = new System.Drawing.Point(11, 30); - this.metroButton1.Name = "metroButton1"; - this.metroButton1.Size = new System.Drawing.Size(187, 177); - this.metroButton1.TabIndex = 4; - this.metroButton1.Text = "Add Menu"; - this.metroButton1.UseSelectable = true; + this.displayedOnDevices.FormattingEnabled = true; + this.displayedOnDevices.ItemHeight = 28; + this.displayedOnDevices.Items.AddRange(new object[] { + "Computer1", + "Computer2", + "Computer3", + "Computer4"}); + this.displayedOnDevices.Location = new System.Drawing.Point(183, 35); + this.displayedOnDevices.Name = "displayedOnDevices"; + this.displayedOnDevices.SelectionMode = System.Windows.Forms.SelectionMode.MultiSimple; + this.displayedOnDevices.Size = new System.Drawing.Size(401, 368); + this.displayedOnDevices.Sorted = true; + this.displayedOnDevices.TabIndex = 0; // // menuGroup1 // @@ -258,19 +228,6 @@ private void InitializeComponent() this.menuGroup1.TabStop = false; this.menuGroup1.Text = "Edit Menus"; // - // metroButton2 - // - this.metroButton2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Right))); - this.metroButton2.FontSize = MetroFramework.MetroButtonSize.Tall; - this.metroButton2.FontWeight = MetroFramework.MetroButtonWeight.Regular; - this.metroButton2.Location = new System.Drawing.Point(204, 30); - this.metroButton2.Name = "metroButton2"; - this.metroButton2.Size = new System.Drawing.Size(187, 177); - this.metroButton2.TabIndex = 5; - this.metroButton2.Text = "Rename Menu"; - this.metroButton2.UseSelectable = true; - // // metroButton3 // this.metroButton3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) @@ -284,101 +241,75 @@ private void InitializeComponent() this.metroButton3.Text = "Remove Menu"; this.metroButton3.UseSelectable = true; // - // groupBox1 + // metroButton2 // - this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + this.metroButton2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Right))); - this.groupBox1.BackColor = System.Drawing.Color.Transparent; - this.groupBox1.Controls.Add(this.label1); - this.groupBox1.Controls.Add(this.displayedOnDevices); - this.groupBox1.Font = new System.Drawing.Font("Segoe UI Light", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupBox1.Location = new System.Drawing.Point(741, 287); - this.groupBox1.Name = "groupBox1"; - this.groupBox1.Padding = new System.Windows.Forms.Padding(8); - this.groupBox1.Size = new System.Drawing.Size(595, 418); - this.groupBox1.TabIndex = 7; - this.groupBox1.TabStop = false; - this.groupBox1.Text = "Options"; + this.metroButton2.FontSize = MetroFramework.MetroButtonSize.Tall; + this.metroButton2.FontWeight = MetroFramework.MetroButtonWeight.Regular; + this.metroButton2.Location = new System.Drawing.Point(204, 30); + this.metroButton2.Name = "metroButton2"; + this.metroButton2.Size = new System.Drawing.Size(187, 177); + this.metroButton2.TabIndex = 5; + this.metroButton2.Text = "Rename Menu"; + this.metroButton2.UseSelectable = true; // - // displayedOnDevices + // metroButton1 // - this.displayedOnDevices.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) + this.metroButton1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Right))); - this.displayedOnDevices.FormattingEnabled = true; - this.displayedOnDevices.ItemHeight = 28; - this.displayedOnDevices.Items.AddRange(new object[] { - "Computer1", - "Computer2", - "Computer3", - "Computer4"}); - this.displayedOnDevices.Location = new System.Drawing.Point(183, 35); - this.displayedOnDevices.Name = "displayedOnDevices"; - this.displayedOnDevices.SelectionMode = System.Windows.Forms.SelectionMode.MultiSimple; - this.displayedOnDevices.Size = new System.Drawing.Size(401, 340); - this.displayedOnDevices.Sorted = true; - this.displayedOnDevices.TabIndex = 0; - // - // label1 + this.metroButton1.FontSize = MetroFramework.MetroButtonSize.Tall; + this.metroButton1.FontWeight = MetroFramework.MetroButtonWeight.Regular; + this.metroButton1.Location = new System.Drawing.Point(11, 30); + this.metroButton1.Name = "metroButton1"; + this.metroButton1.Size = new System.Drawing.Size(187, 177); + this.metroButton1.TabIndex = 4; + this.metroButton1.Text = "Add Menu"; + this.metroButton1.UseSelectable = true; // - this.label1.Location = new System.Drawing.Point(6, 35); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(171, 36); - this.label1.TabIndex = 1; - this.label1.Text = "Display Menu On:"; + // metroLabel1 // - // stationTab + this.metroLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.metroLabel1.FontSize = MetroFramework.MetroLabelSize.Tall; + this.metroLabel1.Location = new System.Drawing.Point(3, 23); + this.metroLabel1.Name = "metroLabel1"; + this.metroLabel1.Size = new System.Drawing.Size(700, 37); + this.metroLabel1.TabIndex = 3; + this.metroLabel1.Text = "Select Menu"; + this.metroLabel1.TextAlign = System.Drawing.ContentAlignment.BottomLeft; // - this.stationTab.Controls.Add(this.stationSaveButton); - this.stationTab.Controls.Add(this.stationRevertButton); - this.stationTab.Controls.Add(this.stationListBox); - this.stationTab.Controls.Add(this.groupBox4); - this.stationTab.Controls.Add(this.groupBox5); - this.stationTab.Controls.Add(this.metroLabel3); - this.stationTab.HorizontalScrollbarBarColor = true; - this.stationTab.HorizontalScrollbarHighlightOnWheel = false; - this.stationTab.HorizontalScrollbarSize = 10; - this.stationTab.Location = new System.Drawing.Point(4, 38); - this.stationTab.Name = "stationTab"; - this.stationTab.Size = new System.Drawing.Size(1360, 790); - this.stationTab.TabIndex = 3; - this.stationTab.Text = "Edit Stations"; - this.stationTab.VerticalScrollbarBarColor = true; - this.stationTab.VerticalScrollbarHighlightOnWheel = false; - this.stationTab.VerticalScrollbarSize = 10; + // itemsTab // - // tabMenuBox + this.itemsTab.Controls.Add(this.itemsSaveButton); + this.itemsTab.Controls.Add(this.itemListBox); + this.itemsTab.Controls.Add(this.itemsRevertButton); + this.itemsTab.Controls.Add(this.groupBox2); + this.itemsTab.Controls.Add(this.groupBox3); + this.itemsTab.Controls.Add(this.metroLabel2); + this.itemsTab.HorizontalScrollbarBarColor = true; + this.itemsTab.HorizontalScrollbarHighlightOnWheel = false; + this.itemsTab.HorizontalScrollbarSize = 10; + this.itemsTab.Location = new System.Drawing.Point(4, 38); + this.itemsTab.Name = "itemsTab"; + this.itemsTab.Size = new System.Drawing.Size(1360, 790); + this.itemsTab.TabIndex = 1; + this.itemsTab.Text = "Edit Items"; + this.itemsTab.VerticalScrollbarBarColor = true; + this.itemsTab.VerticalScrollbarHighlightOnWheel = false; + this.itemsTab.VerticalScrollbarSize = 10; // - this.tabMenuBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.tabMenuBox.Font = new System.Drawing.Font("Segoe UI Light", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.tabMenuBox.FormattingEnabled = true; - this.tabMenuBox.ItemHeight = 38; - this.tabMenuBox.Items.AddRange(new object[] { - "Item1", - "Item1", - "Item1", - "Item1", - "Item1", - "Item1", - "Item2", - "Item2", - "Item2", - "Item2", - "Item2", - "Item2", - "Item3", - "Item3", - "Item3", - "Item3", - "Item3", - "Item3"}); - this.tabMenuBox.Location = new System.Drawing.Point(7, 107); - this.tabMenuBox.Name = "tabMenuBox"; - this.tabMenuBox.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended; - this.tabMenuBox.Size = new System.Drawing.Size(696, 650); - this.tabMenuBox.TabIndex = 2; + // itemsSaveButton + // + this.itemsSaveButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.itemsSaveButton.FontSize = MetroFramework.MetroButtonSize.Tall; + this.itemsSaveButton.FontWeight = MetroFramework.MetroButtonWeight.Regular; + this.itemsSaveButton.Location = new System.Drawing.Point(1038, 712); + this.itemsSaveButton.Name = "itemsSaveButton"; + this.itemsSaveButton.Size = new System.Drawing.Size(298, 45); + this.itemsSaveButton.TabIndex = 11; + this.itemsSaveButton.Text = "Save"; + this.itemsSaveButton.UseSelectable = true; // // itemListBox // @@ -413,6 +344,18 @@ private void InitializeComponent() this.itemListBox.Size = new System.Drawing.Size(696, 688); this.itemListBox.TabIndex = 8; // + // itemsRevertButton + // + this.itemsRevertButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.itemsRevertButton.FontSize = MetroFramework.MetroButtonSize.Tall; + this.itemsRevertButton.FontWeight = MetroFramework.MetroButtonWeight.Regular; + this.itemsRevertButton.Location = new System.Drawing.Point(741, 713); + this.itemsRevertButton.Name = "itemsRevertButton"; + this.itemsRevertButton.Size = new System.Drawing.Size(291, 45); + this.itemsRevertButton.TabIndex = 10; + this.itemsRevertButton.Text = "Revert"; + this.itemsRevertButton.UseSelectable = true; + // // groupBox2 // this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) @@ -435,6 +378,91 @@ private void InitializeComponent() this.groupBox2.TabStop = false; this.groupBox2.Text = "Options"; // + // itemPrice + // + this.itemPrice.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.itemPrice.DecimalPlaces = 2; + this.itemPrice.Location = new System.Drawing.Point(166, 187); + this.itemPrice.Name = "itemPrice"; + this.itemPrice.Size = new System.Drawing.Size(125, 34); + this.itemPrice.TabIndex = 9; + // + // itemDescriptionTextbox + // + this.itemDescriptionTextbox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + // + // + // + this.itemDescriptionTextbox.CustomButton.Image = null; + this.itemDescriptionTextbox.CustomButton.Location = new System.Drawing.Point(278, 1); + this.itemDescriptionTextbox.CustomButton.Name = ""; + this.itemDescriptionTextbox.CustomButton.Size = new System.Drawing.Size(139, 139); + this.itemDescriptionTextbox.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; + this.itemDescriptionTextbox.CustomButton.TabIndex = 1; + this.itemDescriptionTextbox.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; + this.itemDescriptionTextbox.CustomButton.UseSelectable = true; + this.itemDescriptionTextbox.CustomButton.Visible = false; + this.itemDescriptionTextbox.FontSize = MetroFramework.MetroTextBoxSize.Medium; + this.itemDescriptionTextbox.Lines = new string[] { + "metroTextBox1"}; + this.itemDescriptionTextbox.Location = new System.Drawing.Point(166, 35); + this.itemDescriptionTextbox.MaxLength = 32767; + this.itemDescriptionTextbox.Multiline = true; + this.itemDescriptionTextbox.Name = "itemDescriptionTextbox"; + this.itemDescriptionTextbox.PasswordChar = '\0'; + this.itemDescriptionTextbox.ScrollBars = System.Windows.Forms.ScrollBars.None; + this.itemDescriptionTextbox.SelectedText = ""; + this.itemDescriptionTextbox.SelectionLength = 0; + this.itemDescriptionTextbox.SelectionStart = 0; + this.itemDescriptionTextbox.ShortcutsEnabled = true; + this.itemDescriptionTextbox.Size = new System.Drawing.Size(418, 141); + this.itemDescriptionTextbox.TabIndex = 6; + this.itemDescriptionTextbox.Text = "metroTextBox1"; + this.itemDescriptionTextbox.UseSelectable = true; + this.itemDescriptionTextbox.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); + this.itemDescriptionTextbox.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel); + // + // label5 + // + this.label5.Location = new System.Drawing.Point(6, 183); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(154, 36); + this.label5.TabIndex = 5; + this.label5.Text = "Price:"; + // + // label4 + // + this.label4.Location = new System.Drawing.Point(6, 35); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(154, 36); + this.label4.TabIndex = 4; + this.label4.Text = "Description: "; + // + // printingListBox + // + this.printingListBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.printingListBox.FormattingEnabled = true; + this.printingListBox.ItemHeight = 28; + this.printingListBox.Items.AddRange(new object[] { + "Cold", + "Hot"}); + this.printingListBox.Location = new System.Drawing.Point(166, 399); + this.printingListBox.Name = "printingListBox"; + this.printingListBox.Size = new System.Drawing.Size(418, 60); + this.printingListBox.Sorted = true; + this.printingListBox.TabIndex = 3; + // + // label3 + // + this.label3.Location = new System.Drawing.Point(6, 399); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(149, 36); + this.label3.TabIndex = 2; + this.label3.Text = "Printing Station:"; + // // label2 // this.label2.Location = new System.Drawing.Point(6, 249); @@ -529,330 +557,51 @@ private void InitializeComponent() this.metroLabel2.Text = "Select Items"; this.metroLabel2.TextAlign = System.Drawing.ContentAlignment.BottomLeft; // - // label3 + // employeeTab // - this.label3.Location = new System.Drawing.Point(6, 399); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(149, 36); - this.label3.TabIndex = 2; - this.label3.Text = "Printing Station:"; + this.employeeTab.Controls.Add(this.metroButton4); + this.employeeTab.Controls.Add(this.metroButton5); + this.employeeTab.Controls.Add(this.employeeListBox); + this.employeeTab.Controls.Add(this.groupBox6); + this.employeeTab.Controls.Add(this.groupBox7); + this.employeeTab.Controls.Add(this.metroLabel4); + this.employeeTab.HorizontalScrollbarBarColor = true; + this.employeeTab.HorizontalScrollbarHighlightOnWheel = false; + this.employeeTab.HorizontalScrollbarSize = 10; + this.employeeTab.Location = new System.Drawing.Point(4, 38); + this.employeeTab.Name = "employeeTab"; + this.employeeTab.Size = new System.Drawing.Size(1360, 790); + this.employeeTab.TabIndex = 2; + this.employeeTab.Text = "Edit Employees"; + this.employeeTab.VerticalScrollbarBarColor = true; + this.employeeTab.VerticalScrollbarHighlightOnWheel = false; + this.employeeTab.VerticalScrollbarSize = 10; // - // printingListBox + // metroButton4 // - this.printingListBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.printingListBox.FormattingEnabled = true; - this.printingListBox.ItemHeight = 28; - this.printingListBox.Items.AddRange(new object[] { - "Cold", - "Hot"}); - this.printingListBox.Location = new System.Drawing.Point(166, 399); - this.printingListBox.Name = "printingListBox"; - this.printingListBox.Size = new System.Drawing.Size(418, 60); - this.printingListBox.Sorted = true; - this.printingListBox.TabIndex = 3; + this.metroButton4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.metroButton4.FontSize = MetroFramework.MetroButtonSize.Tall; + this.metroButton4.FontWeight = MetroFramework.MetroButtonWeight.Regular; + this.metroButton4.Location = new System.Drawing.Point(1038, 711); + this.metroButton4.Name = "metroButton4"; + this.metroButton4.Size = new System.Drawing.Size(298, 45); + this.metroButton4.TabIndex = 21; + this.metroButton4.Text = "Save"; + this.metroButton4.UseSelectable = true; // - // label4 + // metroButton5 // - this.label4.Location = new System.Drawing.Point(6, 35); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(154, 36); - this.label4.TabIndex = 4; - this.label4.Text = "Description: "; + this.metroButton5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.metroButton5.FontSize = MetroFramework.MetroButtonSize.Tall; + this.metroButton5.FontWeight = MetroFramework.MetroButtonWeight.Regular; + this.metroButton5.Location = new System.Drawing.Point(741, 712); + this.metroButton5.Name = "metroButton5"; + this.metroButton5.Size = new System.Drawing.Size(291, 45); + this.metroButton5.TabIndex = 20; + this.metroButton5.Text = "Revert"; + this.metroButton5.UseSelectable = true; // - // label5 - // - this.label5.Location = new System.Drawing.Point(6, 183); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(154, 36); - this.label5.TabIndex = 5; - this.label5.Text = "Price:"; - // - // itemDescriptionTextbox - // - this.itemDescriptionTextbox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - // - // - // - this.itemDescriptionTextbox.CustomButton.Image = null; - this.itemDescriptionTextbox.CustomButton.Location = new System.Drawing.Point(278, 1); - this.itemDescriptionTextbox.CustomButton.Name = ""; - this.itemDescriptionTextbox.CustomButton.Size = new System.Drawing.Size(139, 139); - this.itemDescriptionTextbox.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; - this.itemDescriptionTextbox.CustomButton.TabIndex = 1; - this.itemDescriptionTextbox.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; - this.itemDescriptionTextbox.CustomButton.UseSelectable = true; - this.itemDescriptionTextbox.CustomButton.Visible = false; - this.itemDescriptionTextbox.FontSize = MetroFramework.MetroTextBoxSize.Medium; - this.itemDescriptionTextbox.Lines = new string[] { - "metroTextBox1"}; - this.itemDescriptionTextbox.Location = new System.Drawing.Point(166, 35); - this.itemDescriptionTextbox.MaxLength = 32767; - this.itemDescriptionTextbox.Multiline = true; - this.itemDescriptionTextbox.Name = "itemDescriptionTextbox"; - this.itemDescriptionTextbox.PasswordChar = '\0'; - this.itemDescriptionTextbox.ScrollBars = System.Windows.Forms.ScrollBars.None; - this.itemDescriptionTextbox.SelectedText = ""; - this.itemDescriptionTextbox.SelectionLength = 0; - this.itemDescriptionTextbox.SelectionStart = 0; - this.itemDescriptionTextbox.ShortcutsEnabled = true; - this.itemDescriptionTextbox.Size = new System.Drawing.Size(418, 141); - this.itemDescriptionTextbox.TabIndex = 6; - this.itemDescriptionTextbox.Text = "metroTextBox1"; - this.itemDescriptionTextbox.UseSelectable = true; - this.itemDescriptionTextbox.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); - this.itemDescriptionTextbox.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel); - // - // menuRevertButton - // - this.menuRevertButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.menuRevertButton.FontSize = MetroFramework.MetroButtonSize.Tall; - this.menuRevertButton.FontWeight = MetroFramework.MetroButtonWeight.Regular; - this.menuRevertButton.Location = new System.Drawing.Point(741, 712); - this.menuRevertButton.Name = "menuRevertButton"; - this.menuRevertButton.Size = new System.Drawing.Size(291, 45); - this.menuRevertButton.TabIndex = 8; - this.menuRevertButton.Text = "Revert"; - this.menuRevertButton.UseSelectable = true; - // - // menuSaveButton - // - this.menuSaveButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.menuSaveButton.FontSize = MetroFramework.MetroButtonSize.Tall; - this.menuSaveButton.FontWeight = MetroFramework.MetroButtonWeight.Regular; - this.menuSaveButton.Location = new System.Drawing.Point(1038, 711); - this.menuSaveButton.Name = "menuSaveButton"; - this.menuSaveButton.Size = new System.Drawing.Size(298, 45); - this.menuSaveButton.TabIndex = 9; - this.menuSaveButton.Text = "Save"; - this.menuSaveButton.UseSelectable = true; - // - // itemsSaveButton - // - this.itemsSaveButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.itemsSaveButton.FontSize = MetroFramework.MetroButtonSize.Tall; - this.itemsSaveButton.FontWeight = MetroFramework.MetroButtonWeight.Regular; - this.itemsSaveButton.Location = new System.Drawing.Point(1038, 712); - this.itemsSaveButton.Name = "itemsSaveButton"; - this.itemsSaveButton.Size = new System.Drawing.Size(298, 45); - this.itemsSaveButton.TabIndex = 11; - this.itemsSaveButton.Text = "Save"; - this.itemsSaveButton.UseSelectable = true; - // - // itemsRevertButton - // - this.itemsRevertButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.itemsRevertButton.FontSize = MetroFramework.MetroButtonSize.Tall; - this.itemsRevertButton.FontWeight = MetroFramework.MetroButtonWeight.Regular; - this.itemsRevertButton.Location = new System.Drawing.Point(741, 713); - this.itemsRevertButton.Name = "itemsRevertButton"; - this.itemsRevertButton.Size = new System.Drawing.Size(291, 45); - this.itemsRevertButton.TabIndex = 10; - this.itemsRevertButton.Text = "Revert"; - this.itemsRevertButton.UseSelectable = true; - // - // itemPrice - // - this.itemPrice.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.itemPrice.DecimalPlaces = 2; - this.itemPrice.Location = new System.Drawing.Point(166, 187); - this.itemPrice.Name = "itemPrice"; - this.itemPrice.Size = new System.Drawing.Size(125, 34); - this.itemPrice.TabIndex = 9; - // - // stationSaveButton - // - this.stationSaveButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.stationSaveButton.FontSize = MetroFramework.MetroButtonSize.Tall; - this.stationSaveButton.FontWeight = MetroFramework.MetroButtonWeight.Regular; - this.stationSaveButton.Location = new System.Drawing.Point(1038, 711); - this.stationSaveButton.Name = "stationSaveButton"; - this.stationSaveButton.Size = new System.Drawing.Size(298, 45); - this.stationSaveButton.TabIndex = 15; - this.stationSaveButton.Text = "Save"; - this.stationSaveButton.UseSelectable = true; - // - // stationRevertButton - // - this.stationRevertButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.stationRevertButton.FontSize = MetroFramework.MetroButtonSize.Tall; - this.stationRevertButton.FontWeight = MetroFramework.MetroButtonWeight.Regular; - this.stationRevertButton.Location = new System.Drawing.Point(741, 712); - this.stationRevertButton.Name = "stationRevertButton"; - this.stationRevertButton.Size = new System.Drawing.Size(291, 45); - this.stationRevertButton.TabIndex = 14; - this.stationRevertButton.Text = "Revert"; - this.stationRevertButton.UseSelectable = true; - // - // stationListBox - // - this.stationListBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.stationListBox.Font = new System.Drawing.Font("Segoe UI Light", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.stationListBox.FormattingEnabled = true; - this.stationListBox.ItemHeight = 38; - this.stationListBox.Items.AddRange(new object[] { - "Item1", - "Item1", - "Item1", - "Item1", - "Item1", - "Item1", - "Item2", - "Item2", - "Item2", - "Item2", - "Item2", - "Item2", - "Item3", - "Item3", - "Item3", - "Item3", - "Item3", - "Item3"}); - this.stationListBox.Location = new System.Drawing.Point(7, 69); - this.stationListBox.Name = "stationListBox"; - this.stationListBox.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended; - this.stationListBox.Size = new System.Drawing.Size(696, 688); - this.stationListBox.TabIndex = 10; - // - // groupBox4 - // - this.groupBox4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Right))); - this.groupBox4.BackColor = System.Drawing.Color.Transparent; - this.groupBox4.Controls.Add(this.label6); - this.groupBox4.Controls.Add(this.stationTypeListBox); - this.groupBox4.Font = new System.Drawing.Font("Segoe UI Light", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupBox4.Location = new System.Drawing.Point(741, 287); - this.groupBox4.Name = "groupBox4"; - this.groupBox4.Padding = new System.Windows.Forms.Padding(8); - this.groupBox4.Size = new System.Drawing.Size(595, 418); - this.groupBox4.TabIndex = 13; - this.groupBox4.TabStop = false; - this.groupBox4.Text = "Options"; - // - // label6 - // - this.label6.Location = new System.Drawing.Point(6, 35); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(171, 36); - this.label6.TabIndex = 1; - this.label6.Text = "Station Type:"; - // - // stationTypeListBox - // - this.stationTypeListBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.stationTypeListBox.FormattingEnabled = true; - this.stationTypeListBox.ItemHeight = 28; - this.stationTypeListBox.Items.AddRange(new object[] { - "Admin Station", - "Chef Station", - "Host Station", - "Waiter Station"}); - this.stationTypeListBox.Location = new System.Drawing.Point(183, 35); - this.stationTypeListBox.Name = "stationTypeListBox"; - this.stationTypeListBox.Size = new System.Drawing.Size(401, 340); - this.stationTypeListBox.Sorted = true; - this.stationTypeListBox.TabIndex = 0; - // - // groupBox5 - // - this.groupBox5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.groupBox5.BackColor = System.Drawing.Color.Transparent; - this.groupBox5.Controls.Add(this.stationRemoveButton); - this.groupBox5.Controls.Add(this.stationRenameButton); - this.groupBox5.Controls.Add(this.stationAddButton); - this.groupBox5.Font = new System.Drawing.Font("Segoe UI Light", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupBox5.Location = new System.Drawing.Point(741, 63); - this.groupBox5.Name = "groupBox5"; - this.groupBox5.Padding = new System.Windows.Forms.Padding(8); - this.groupBox5.Size = new System.Drawing.Size(595, 218); - this.groupBox5.TabIndex = 12; - this.groupBox5.TabStop = false; - this.groupBox5.Text = "Edit Stations"; - // - // stationRemoveButton - // - this.stationRemoveButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Right))); - this.stationRemoveButton.FontSize = MetroFramework.MetroButtonSize.Tall; - this.stationRemoveButton.FontWeight = MetroFramework.MetroButtonWeight.Regular; - this.stationRemoveButton.Location = new System.Drawing.Point(397, 30); - this.stationRemoveButton.Name = "stationRemoveButton"; - this.stationRemoveButton.Size = new System.Drawing.Size(187, 177); - this.stationRemoveButton.TabIndex = 6; - this.stationRemoveButton.Text = "Remove Station"; - this.stationRemoveButton.UseSelectable = true; - // - // stationRenameButton - // - this.stationRenameButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Right))); - this.stationRenameButton.FontSize = MetroFramework.MetroButtonSize.Tall; - this.stationRenameButton.FontWeight = MetroFramework.MetroButtonWeight.Regular; - this.stationRenameButton.Location = new System.Drawing.Point(204, 30); - this.stationRenameButton.Name = "stationRenameButton"; - this.stationRenameButton.Size = new System.Drawing.Size(187, 177); - this.stationRenameButton.TabIndex = 5; - this.stationRenameButton.Text = "Rename Station"; - this.stationRenameButton.UseSelectable = true; - // - // stationAddButton - // - this.stationAddButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Right))); - this.stationAddButton.FontSize = MetroFramework.MetroButtonSize.Tall; - this.stationAddButton.FontWeight = MetroFramework.MetroButtonWeight.Regular; - this.stationAddButton.Location = new System.Drawing.Point(11, 30); - this.stationAddButton.Name = "stationAddButton"; - this.stationAddButton.Size = new System.Drawing.Size(187, 177); - this.stationAddButton.TabIndex = 4; - this.stationAddButton.Text = "Add Station"; - this.stationAddButton.UseSelectable = true; - // - // metroLabel3 - // - this.metroLabel3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.metroLabel3.FontSize = MetroFramework.MetroLabelSize.Tall; - this.metroLabel3.Location = new System.Drawing.Point(3, 23); - this.metroLabel3.Name = "metroLabel3"; - this.metroLabel3.Size = new System.Drawing.Size(700, 37); - this.metroLabel3.TabIndex = 11; - this.metroLabel3.Text = "Select Stations"; - this.metroLabel3.TextAlign = System.Drawing.ContentAlignment.BottomLeft; - // - // metroButton4 - // - this.metroButton4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.metroButton4.FontSize = MetroFramework.MetroButtonSize.Tall; - this.metroButton4.FontWeight = MetroFramework.MetroButtonWeight.Regular; - this.metroButton4.Location = new System.Drawing.Point(1038, 711); - this.metroButton4.Name = "metroButton4"; - this.metroButton4.Size = new System.Drawing.Size(298, 45); - this.metroButton4.TabIndex = 21; - this.metroButton4.Text = "Save"; - this.metroButton4.UseSelectable = true; - // - // metroButton5 - // - this.metroButton5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.metroButton5.FontSize = MetroFramework.MetroButtonSize.Tall; - this.metroButton5.FontWeight = MetroFramework.MetroButtonWeight.Regular; - this.metroButton5.Location = new System.Drawing.Point(741, 712); - this.metroButton5.Name = "metroButton5"; - this.metroButton5.Size = new System.Drawing.Size(291, 45); - this.metroButton5.TabIndex = 20; - this.metroButton5.Text = "Revert"; - this.metroButton5.UseSelectable = true; - // - // employeeListBox + // employeeListBox // this.employeeListBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) @@ -909,6 +658,160 @@ private void InitializeComponent() this.groupBox6.TabStop = false; this.groupBox6.Text = "Options"; // + // lastNameTextBox + // + this.lastNameTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + // + // + // + this.lastNameTextBox.CustomButton.Image = null; + this.lastNameTextBox.CustomButton.Location = new System.Drawing.Point(384, 2); + this.lastNameTextBox.CustomButton.Name = ""; + this.lastNameTextBox.CustomButton.Size = new System.Drawing.Size(31, 31); + this.lastNameTextBox.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; + this.lastNameTextBox.CustomButton.TabIndex = 1; + this.lastNameTextBox.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; + this.lastNameTextBox.CustomButton.UseSelectable = true; + this.lastNameTextBox.CustomButton.Visible = false; + this.lastNameTextBox.FontSize = MetroFramework.MetroTextBoxSize.Medium; + this.lastNameTextBox.Lines = new string[] { + "metroTextBox2"}; + this.lastNameTextBox.Location = new System.Drawing.Point(166, 131); + this.lastNameTextBox.MaxLength = 32767; + this.lastNameTextBox.Multiline = true; + this.lastNameTextBox.Name = "lastNameTextBox"; + this.lastNameTextBox.PasswordChar = '\0'; + this.lastNameTextBox.ScrollBars = System.Windows.Forms.ScrollBars.None; + this.lastNameTextBox.SelectedText = ""; + this.lastNameTextBox.SelectionLength = 0; + this.lastNameTextBox.SelectionStart = 0; + this.lastNameTextBox.ShortcutsEnabled = true; + this.lastNameTextBox.Size = new System.Drawing.Size(418, 36); + this.lastNameTextBox.TabIndex = 17; + this.lastNameTextBox.Text = "metroTextBox2"; + this.lastNameTextBox.UseSelectable = true; + this.lastNameTextBox.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); + this.lastNameTextBox.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel); + // + // label11 + // + this.label11.Location = new System.Drawing.Point(6, 131); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(154, 36); + this.label11.TabIndex = 16; + this.label11.Text = "Last Name:"; + // + // firstNameTextBox + // + this.firstNameTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + // + // + // + this.firstNameTextBox.CustomButton.Image = null; + this.firstNameTextBox.CustomButton.Location = new System.Drawing.Point(384, 2); + this.firstNameTextBox.CustomButton.Name = ""; + this.firstNameTextBox.CustomButton.Size = new System.Drawing.Size(31, 31); + this.firstNameTextBox.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; + this.firstNameTextBox.CustomButton.TabIndex = 1; + this.firstNameTextBox.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; + this.firstNameTextBox.CustomButton.UseSelectable = true; + this.firstNameTextBox.CustomButton.Visible = false; + this.firstNameTextBox.FontSize = MetroFramework.MetroTextBoxSize.Medium; + this.firstNameTextBox.Lines = new string[] { + "metroTextBox1"}; + this.firstNameTextBox.Location = new System.Drawing.Point(166, 83); + this.firstNameTextBox.MaxLength = 32767; + this.firstNameTextBox.Multiline = true; + this.firstNameTextBox.Name = "firstNameTextBox"; + this.firstNameTextBox.PasswordChar = '\0'; + this.firstNameTextBox.ScrollBars = System.Windows.Forms.ScrollBars.None; + this.firstNameTextBox.SelectedText = ""; + this.firstNameTextBox.SelectionLength = 0; + this.firstNameTextBox.SelectionStart = 0; + this.firstNameTextBox.ShortcutsEnabled = true; + this.firstNameTextBox.Size = new System.Drawing.Size(418, 36); + this.firstNameTextBox.TabIndex = 15; + this.firstNameTextBox.Text = "metroTextBox1"; + this.firstNameTextBox.UseSelectable = true; + this.firstNameTextBox.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); + this.firstNameTextBox.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel); + // + // label10 + // + this.label10.Location = new System.Drawing.Point(6, 83); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(154, 36); + this.label10.TabIndex = 14; + this.label10.Text = "First Name:"; + // + // pinNumber + // + this.pinNumber.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.pinNumber.Location = new System.Drawing.Point(166, 187); + this.pinNumber.Maximum = new decimal(new int[] { + 9999, + 0, + 0, + 0}); + this.pinNumber.Name = "pinNumber"; + this.pinNumber.Size = new System.Drawing.Size(125, 34); + this.pinNumber.TabIndex = 13; + // + // usernameTextBox + // + this.usernameTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + // + // + // + this.usernameTextBox.CustomButton.Image = null; + this.usernameTextBox.CustomButton.Location = new System.Drawing.Point(384, 2); + this.usernameTextBox.CustomButton.Name = ""; + this.usernameTextBox.CustomButton.Size = new System.Drawing.Size(31, 31); + this.usernameTextBox.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; + this.usernameTextBox.CustomButton.TabIndex = 1; + this.usernameTextBox.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; + this.usernameTextBox.CustomButton.UseSelectable = true; + this.usernameTextBox.CustomButton.Visible = false; + this.usernameTextBox.FontSize = MetroFramework.MetroTextBoxSize.Medium; + this.usernameTextBox.Lines = new string[] { + "metroTextBox1"}; + this.usernameTextBox.Location = new System.Drawing.Point(166, 35); + this.usernameTextBox.MaxLength = 32767; + this.usernameTextBox.Multiline = true; + this.usernameTextBox.Name = "usernameTextBox"; + this.usernameTextBox.PasswordChar = '\0'; + this.usernameTextBox.ScrollBars = System.Windows.Forms.ScrollBars.None; + this.usernameTextBox.SelectedText = ""; + this.usernameTextBox.SelectionLength = 0; + this.usernameTextBox.SelectionStart = 0; + this.usernameTextBox.ShortcutsEnabled = true; + this.usernameTextBox.Size = new System.Drawing.Size(418, 36); + this.usernameTextBox.TabIndex = 12; + this.usernameTextBox.Text = "metroTextBox1"; + this.usernameTextBox.UseSelectable = true; + this.usernameTextBox.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); + this.usernameTextBox.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel); + // + // pin + // + this.pin.Location = new System.Drawing.Point(6, 183); + this.pin.Name = "pin"; + this.pin.Size = new System.Drawing.Size(154, 36); + this.pin.TabIndex = 11; + this.pin.Text = "Pin:"; + // + // label9 + // + this.label9.Location = new System.Drawing.Point(6, 35); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(154, 36); + this.label9.TabIndex = 10; + this.label9.Text = "Username:"; + // // label7 // this.label7.Location = new System.Drawing.Point(6, 237); @@ -988,187 +891,231 @@ private void InitializeComponent() this.metroLabel4.Text = "Select Employee"; this.metroLabel4.TextAlign = System.Drawing.ContentAlignment.BottomLeft; // - // pinNumber + // stationTab // - this.pinNumber.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + this.stationTab.Controls.Add(this.stationSaveButton); + this.stationTab.Controls.Add(this.stationRevertButton); + this.stationTab.Controls.Add(this.stationListBox); + this.stationTab.Controls.Add(this.groupBox4); + this.stationTab.Controls.Add(this.groupBox5); + this.stationTab.Controls.Add(this.metroLabel3); + this.stationTab.HorizontalScrollbarBarColor = true; + this.stationTab.HorizontalScrollbarHighlightOnWheel = false; + this.stationTab.HorizontalScrollbarSize = 10; + this.stationTab.Location = new System.Drawing.Point(4, 38); + this.stationTab.Name = "stationTab"; + this.stationTab.Size = new System.Drawing.Size(1360, 790); + this.stationTab.TabIndex = 3; + this.stationTab.Text = "Edit Stations"; + this.stationTab.VerticalScrollbarBarColor = true; + this.stationTab.VerticalScrollbarHighlightOnWheel = false; + this.stationTab.VerticalScrollbarSize = 10; + // + // stationSaveButton + // + this.stationSaveButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.stationSaveButton.FontSize = MetroFramework.MetroButtonSize.Tall; + this.stationSaveButton.FontWeight = MetroFramework.MetroButtonWeight.Regular; + this.stationSaveButton.Location = new System.Drawing.Point(1038, 711); + this.stationSaveButton.Name = "stationSaveButton"; + this.stationSaveButton.Size = new System.Drawing.Size(298, 45); + this.stationSaveButton.TabIndex = 15; + this.stationSaveButton.Text = "Save"; + this.stationSaveButton.UseSelectable = true; + // + // stationRevertButton + // + this.stationRevertButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.stationRevertButton.FontSize = MetroFramework.MetroButtonSize.Tall; + this.stationRevertButton.FontWeight = MetroFramework.MetroButtonWeight.Regular; + this.stationRevertButton.Location = new System.Drawing.Point(741, 712); + this.stationRevertButton.Name = "stationRevertButton"; + this.stationRevertButton.Size = new System.Drawing.Size(291, 45); + this.stationRevertButton.TabIndex = 14; + this.stationRevertButton.Text = "Revert"; + this.stationRevertButton.UseSelectable = true; + // + // stationListBox + // + this.stationListBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.pinNumber.Location = new System.Drawing.Point(166, 187); - this.pinNumber.Maximum = new decimal(new int[] { - 9999, - 0, - 0, - 0}); - this.pinNumber.Name = "pinNumber"; - this.pinNumber.Size = new System.Drawing.Size(125, 34); - this.pinNumber.TabIndex = 13; + this.stationListBox.Font = new System.Drawing.Font("Segoe UI Light", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.stationListBox.FormattingEnabled = true; + this.stationListBox.ItemHeight = 38; + this.stationListBox.Items.AddRange(new object[] { + "Item1", + "Item1", + "Item1", + "Item1", + "Item1", + "Item1", + "Item2", + "Item2", + "Item2", + "Item2", + "Item2", + "Item2", + "Item3", + "Item3", + "Item3", + "Item3", + "Item3", + "Item3"}); + this.stationListBox.Location = new System.Drawing.Point(7, 69); + this.stationListBox.Name = "stationListBox"; + this.stationListBox.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended; + this.stationListBox.Size = new System.Drawing.Size(696, 688); + this.stationListBox.TabIndex = 10; // - // usernameTextBox + // groupBox4 // - this.usernameTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + this.groupBox4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Right))); + this.groupBox4.BackColor = System.Drawing.Color.Transparent; + this.groupBox4.Controls.Add(this.label6); + this.groupBox4.Controls.Add(this.stationTypeListBox); + this.groupBox4.Font = new System.Drawing.Font("Segoe UI Light", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.groupBox4.Location = new System.Drawing.Point(741, 287); + this.groupBox4.Name = "groupBox4"; + this.groupBox4.Padding = new System.Windows.Forms.Padding(8); + this.groupBox4.Size = new System.Drawing.Size(595, 418); + this.groupBox4.TabIndex = 13; + this.groupBox4.TabStop = false; + this.groupBox4.Text = "Options"; // + // label6 // + this.label6.Location = new System.Drawing.Point(6, 35); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(171, 36); + this.label6.TabIndex = 1; + this.label6.Text = "Station Type:"; // - this.usernameTextBox.CustomButton.Image = null; - this.usernameTextBox.CustomButton.Location = new System.Drawing.Point(384, 2); - this.usernameTextBox.CustomButton.Name = ""; - this.usernameTextBox.CustomButton.Size = new System.Drawing.Size(31, 31); - this.usernameTextBox.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; - this.usernameTextBox.CustomButton.TabIndex = 1; - this.usernameTextBox.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; - this.usernameTextBox.CustomButton.UseSelectable = true; - this.usernameTextBox.CustomButton.Visible = false; - this.usernameTextBox.FontSize = MetroFramework.MetroTextBoxSize.Medium; - this.usernameTextBox.Lines = new string[] { - "metroTextBox1"}; - this.usernameTextBox.Location = new System.Drawing.Point(166, 35); - this.usernameTextBox.MaxLength = 32767; - this.usernameTextBox.Multiline = true; - this.usernameTextBox.Name = "usernameTextBox"; - this.usernameTextBox.PasswordChar = '\0'; - this.usernameTextBox.ScrollBars = System.Windows.Forms.ScrollBars.None; - this.usernameTextBox.SelectedText = ""; - this.usernameTextBox.SelectionLength = 0; - this.usernameTextBox.SelectionStart = 0; - this.usernameTextBox.ShortcutsEnabled = true; - this.usernameTextBox.Size = new System.Drawing.Size(418, 36); - this.usernameTextBox.TabIndex = 12; - this.usernameTextBox.Text = "metroTextBox1"; - this.usernameTextBox.UseSelectable = true; - this.usernameTextBox.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); - this.usernameTextBox.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel); - // - // pin + // stationTypeListBox // - this.pin.Location = new System.Drawing.Point(6, 183); - this.pin.Name = "pin"; - this.pin.Size = new System.Drawing.Size(154, 36); - this.pin.TabIndex = 11; - this.pin.Text = "Pin:"; + this.stationTypeListBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.stationTypeListBox.FormattingEnabled = true; + this.stationTypeListBox.ItemHeight = 28; + this.stationTypeListBox.Items.AddRange(new object[] { + "Admin Station", + "Chef Station", + "Host Station", + "Waiter Station"}); + this.stationTypeListBox.Location = new System.Drawing.Point(183, 35); + this.stationTypeListBox.Name = "stationTypeListBox"; + this.stationTypeListBox.Size = new System.Drawing.Size(401, 340); + this.stationTypeListBox.Sorted = true; + this.stationTypeListBox.TabIndex = 0; // - // label9 + // groupBox5 // - this.label9.Location = new System.Drawing.Point(6, 35); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(154, 36); - this.label9.TabIndex = 10; - this.label9.Text = "Username:"; + this.groupBox5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.groupBox5.BackColor = System.Drawing.Color.Transparent; + this.groupBox5.Controls.Add(this.stationRemoveButton); + this.groupBox5.Controls.Add(this.stationRenameButton); + this.groupBox5.Controls.Add(this.stationAddButton); + this.groupBox5.Font = new System.Drawing.Font("Segoe UI Light", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.groupBox5.Location = new System.Drawing.Point(741, 63); + this.groupBox5.Name = "groupBox5"; + this.groupBox5.Padding = new System.Windows.Forms.Padding(8); + this.groupBox5.Size = new System.Drawing.Size(595, 218); + this.groupBox5.TabIndex = 12; + this.groupBox5.TabStop = false; + this.groupBox5.Text = "Edit Stations"; // - // firstNameTextBox + // stationRemoveButton // - this.firstNameTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + this.stationRemoveButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Right))); + this.stationRemoveButton.FontSize = MetroFramework.MetroButtonSize.Tall; + this.stationRemoveButton.FontWeight = MetroFramework.MetroButtonWeight.Regular; + this.stationRemoveButton.Location = new System.Drawing.Point(397, 30); + this.stationRemoveButton.Name = "stationRemoveButton"; + this.stationRemoveButton.Size = new System.Drawing.Size(187, 177); + this.stationRemoveButton.TabIndex = 6; + this.stationRemoveButton.Text = "Remove Station"; + this.stationRemoveButton.UseSelectable = true; // + // stationRenameButton // + this.stationRenameButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); + this.stationRenameButton.FontSize = MetroFramework.MetroButtonSize.Tall; + this.stationRenameButton.FontWeight = MetroFramework.MetroButtonWeight.Regular; + this.stationRenameButton.Location = new System.Drawing.Point(204, 30); + this.stationRenameButton.Name = "stationRenameButton"; + this.stationRenameButton.Size = new System.Drawing.Size(187, 177); + this.stationRenameButton.TabIndex = 5; + this.stationRenameButton.Text = "Rename Station"; + this.stationRenameButton.UseSelectable = true; // - this.firstNameTextBox.CustomButton.Image = null; - this.firstNameTextBox.CustomButton.Location = new System.Drawing.Point(384, 2); - this.firstNameTextBox.CustomButton.Name = ""; - this.firstNameTextBox.CustomButton.Size = new System.Drawing.Size(31, 31); - this.firstNameTextBox.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; - this.firstNameTextBox.CustomButton.TabIndex = 1; - this.firstNameTextBox.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; - this.firstNameTextBox.CustomButton.UseSelectable = true; - this.firstNameTextBox.CustomButton.Visible = false; - this.firstNameTextBox.FontSize = MetroFramework.MetroTextBoxSize.Medium; - this.firstNameTextBox.Lines = new string[] { - "metroTextBox1"}; - this.firstNameTextBox.Location = new System.Drawing.Point(166, 83); - this.firstNameTextBox.MaxLength = 32767; - this.firstNameTextBox.Multiline = true; - this.firstNameTextBox.Name = "firstNameTextBox"; - this.firstNameTextBox.PasswordChar = '\0'; - this.firstNameTextBox.ScrollBars = System.Windows.Forms.ScrollBars.None; - this.firstNameTextBox.SelectedText = ""; - this.firstNameTextBox.SelectionLength = 0; - this.firstNameTextBox.SelectionStart = 0; - this.firstNameTextBox.ShortcutsEnabled = true; - this.firstNameTextBox.Size = new System.Drawing.Size(418, 36); - this.firstNameTextBox.TabIndex = 15; - this.firstNameTextBox.Text = "metroTextBox1"; - this.firstNameTextBox.UseSelectable = true; - this.firstNameTextBox.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); - this.firstNameTextBox.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel); - // - // label10 - // - this.label10.Location = new System.Drawing.Point(6, 83); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(154, 36); - this.label10.TabIndex = 14; - this.label10.Text = "First Name:"; - // - // lastNameTextBox + // stationAddButton // - this.lastNameTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + this.stationAddButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Right))); + this.stationAddButton.FontSize = MetroFramework.MetroButtonSize.Tall; + this.stationAddButton.FontWeight = MetroFramework.MetroButtonWeight.Regular; + this.stationAddButton.Location = new System.Drawing.Point(11, 30); + this.stationAddButton.Name = "stationAddButton"; + this.stationAddButton.Size = new System.Drawing.Size(187, 177); + this.stationAddButton.TabIndex = 4; + this.stationAddButton.Text = "Add Station"; + this.stationAddButton.UseSelectable = true; // + // metroLabel3 // + this.metroLabel3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.metroLabel3.FontSize = MetroFramework.MetroLabelSize.Tall; + this.metroLabel3.Location = new System.Drawing.Point(3, 23); + this.metroLabel3.Name = "metroLabel3"; + this.metroLabel3.Size = new System.Drawing.Size(700, 37); + this.metroLabel3.TabIndex = 11; + this.metroLabel3.Text = "Select Stations"; + this.metroLabel3.TextAlign = System.Drawing.ContentAlignment.BottomLeft; // - this.lastNameTextBox.CustomButton.Image = null; - this.lastNameTextBox.CustomButton.Location = new System.Drawing.Point(384, 2); - this.lastNameTextBox.CustomButton.Name = ""; - this.lastNameTextBox.CustomButton.Size = new System.Drawing.Size(31, 31); - this.lastNameTextBox.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; - this.lastNameTextBox.CustomButton.TabIndex = 1; - this.lastNameTextBox.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; - this.lastNameTextBox.CustomButton.UseSelectable = true; - this.lastNameTextBox.CustomButton.Visible = false; - this.lastNameTextBox.FontSize = MetroFramework.MetroTextBoxSize.Medium; - this.lastNameTextBox.Lines = new string[] { - "metroTextBox2"}; - this.lastNameTextBox.Location = new System.Drawing.Point(166, 131); - this.lastNameTextBox.MaxLength = 32767; - this.lastNameTextBox.Multiline = true; - this.lastNameTextBox.Name = "lastNameTextBox"; - this.lastNameTextBox.PasswordChar = '\0'; - this.lastNameTextBox.ScrollBars = System.Windows.Forms.ScrollBars.None; - this.lastNameTextBox.SelectedText = ""; - this.lastNameTextBox.SelectionLength = 0; - this.lastNameTextBox.SelectionStart = 0; - this.lastNameTextBox.ShortcutsEnabled = true; - this.lastNameTextBox.Size = new System.Drawing.Size(418, 36); - this.lastNameTextBox.TabIndex = 17; - this.lastNameTextBox.Text = "metroTextBox2"; - this.lastNameTextBox.UseSelectable = true; - this.lastNameTextBox.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); - this.lastNameTextBox.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel); + // menuSelectionBox // - // label11 + this.menuSelectionBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.menuSelectionBox.FormattingEnabled = true; + this.menuSelectionBox.ItemHeight = 23; + this.menuSelectionBox.Location = new System.Drawing.Point(7, 63); + this.menuSelectionBox.Name = "menuSelectionBox"; + this.menuSelectionBox.Size = new System.Drawing.Size(318, 29); + this.menuSelectionBox.TabIndex = 10; + this.menuSelectionBox.UseSelectable = true; // - this.label11.Location = new System.Drawing.Point(6, 131); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(154, 36); - this.label11.TabIndex = 16; - this.label11.Text = "Last Name:"; + // menuListBox // - // metroTabPage1 - // - this.metroTabPage1.HorizontalScrollbarBarColor = true; - this.metroTabPage1.HorizontalScrollbarHighlightOnWheel = false; - this.metroTabPage1.HorizontalScrollbarSize = 10; - this.metroTabPage1.Location = new System.Drawing.Point(4, 38); - this.metroTabPage1.Name = "metroTabPage1"; - this.metroTabPage1.Size = new System.Drawing.Size(696, 0); - this.metroTabPage1.TabIndex = 1; - this.metroTabPage1.Text = "metroTabPage1"; - this.metroTabPage1.VerticalScrollbarBarColor = true; - this.metroTabPage1.VerticalScrollbarHighlightOnWheel = false; - this.metroTabPage1.VerticalScrollbarSize = 10; - // - // metroTabPage2 - // - this.metroTabPage2.HorizontalScrollbarBarColor = true; - this.metroTabPage2.HorizontalScrollbarHighlightOnWheel = false; - this.metroTabPage2.HorizontalScrollbarSize = 10; - this.metroTabPage2.Location = new System.Drawing.Point(4, 38); - this.metroTabPage2.Name = "metroTabPage2"; - this.metroTabPage2.Size = new System.Drawing.Size(696, 0); - this.metroTabPage2.TabIndex = 2; - this.metroTabPage2.Text = "metroTabPage2"; - this.metroTabPage2.VerticalScrollbarBarColor = true; - this.metroTabPage2.VerticalScrollbarHighlightOnWheel = false; - this.metroTabPage2.VerticalScrollbarSize = 10; + this.menuListBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.menuListBox.Font = new System.Drawing.Font("Segoe UI Light", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.menuListBox.FormattingEnabled = true; + this.menuListBox.ItemHeight = 38; + this.menuListBox.Items.AddRange(new object[] { + "Item1", + "Item1", + "Item1", + "Item1", + "Item1", + "Item1", + "Item2", + "Item2", + "Item2", + "Item2", + "Item3", + "Item3", + "Item3"}); + this.menuListBox.Location = new System.Drawing.Point(7, 107); + this.menuListBox.Name = "menuListBox"; + this.menuListBox.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended; + this.menuListBox.Size = new System.Drawing.Size(696, 650); + this.menuListBox.TabIndex = 11; // // AdminStationView // @@ -1180,20 +1127,19 @@ private void InitializeComponent() this.Load += new System.EventHandler(this.AdminStationView_Load); this.adminTabControl.ResumeLayout(false); this.menuTab.ResumeLayout(false); - this.itemsTab.ResumeLayout(false); - this.employeeTab.ResumeLayout(false); - this.menuTabBar.ResumeLayout(false); - this.menuGroup1.ResumeLayout(false); this.groupBox1.ResumeLayout(false); - this.stationTab.ResumeLayout(false); + this.menuGroup1.ResumeLayout(false); + this.itemsTab.ResumeLayout(false); this.groupBox2.ResumeLayout(false); - this.groupBox3.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.itemPrice)).EndInit(); - this.groupBox4.ResumeLayout(false); - this.groupBox5.ResumeLayout(false); + this.groupBox3.ResumeLayout(false); + this.employeeTab.ResumeLayout(false); this.groupBox6.ResumeLayout(false); - this.groupBox7.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.pinNumber)).EndInit(); + this.groupBox7.ResumeLayout(false); + this.stationTab.ResumeLayout(false); + this.groupBox4.ResumeLayout(false); + this.groupBox5.ResumeLayout(false); this.ResumeLayout(false); } @@ -1205,8 +1151,6 @@ private void InitializeComponent() private MetroFramework.Controls.MetroTabPage itemsTab; private MetroFramework.Controls.MetroTabPage employeeTab; private MetroFramework.Controls.MetroLabel metroLabel1; - private MetroFramework.Controls.MetroTabControl menuTabBar; - private MetroFramework.Controls.MetroTabPage dummyTab; private System.Windows.Forms.GroupBox menuGroup1; private MetroFramework.Controls.MetroButton metroButton2; private MetroFramework.Controls.MetroButton metroButton1; @@ -1215,7 +1159,6 @@ private void InitializeComponent() private System.Windows.Forms.ListBox displayedOnDevices; private System.Windows.Forms.Label label1; private MetroFramework.Controls.MetroTabPage stationTab; - private System.Windows.Forms.ListBox tabMenuBox; private System.Windows.Forms.ListBox itemListBox; private System.Windows.Forms.GroupBox groupBox2; private System.Windows.Forms.Label label2; @@ -1264,7 +1207,7 @@ private void InitializeComponent() private MetroFramework.Controls.MetroTextBox usernameTextBox; private System.Windows.Forms.Label pin; private System.Windows.Forms.Label label9; - private MetroFramework.Controls.MetroTabPage metroTabPage1; - private MetroFramework.Controls.MetroTabPage metroTabPage2; + private MetroFramework.Controls.MetroComboBox menuSelectionBox; + private System.Windows.Forms.ListBox menuListBox; } } \ No newline at end of file diff --git a/EnigmaX/Classes/DBConnect.cs b/EnigmaX/Classes/DBConnect.cs index e1a2359..3076550 100644 --- a/EnigmaX/Classes/DBConnect.cs +++ b/EnigmaX/Classes/DBConnect.cs @@ -79,7 +79,7 @@ public void WriteCommand(MySqlCommand cmd) if (this.OpenConnection() == true) { //create command and assign the query and connection from the constructor - + cmd.Connection = getConnection(); //Execute command cmd.ExecuteNonQuery(); @@ -100,9 +100,10 @@ public List> ReadCommand(MySqlCommand cmd, params str if (this.OpenConnection() == true) { - //Create a data reader and Execute the command + //Create a data reader and Execute the command + cmd.Connection = getConnection(); MySqlDataReader dataReader = cmd.ExecuteReader(); - + //Read the data and store them in the list while (dataReader.Read()) { diff --git a/EnigmaX/Classes/Menu.cs b/EnigmaX/Classes/Menu.cs index 3afd5df..9e80983 100644 --- a/EnigmaX/Classes/Menu.cs +++ b/EnigmaX/Classes/Menu.cs @@ -39,11 +39,6 @@ public List Items } } - public static Menu loadMenuFromDB(int id) { - - return new Menu(id, "", null); - } - public void updateMenuInDB() { }