diff --git a/Enigma/StationsGUI/AdminStationView.Designer.cs b/Enigma/StationsGUI/AdminStationView.Designer.cs index 9ac1046..428c43f 100644 --- a/Enigma/StationsGUI/AdminStationView.Designer.cs +++ b/Enigma/StationsGUI/AdminStationView.Designer.cs @@ -117,11 +117,10 @@ private void InitializeComponent() this.adminTabControl.Controls.Add(this.itemsTab); this.adminTabControl.Controls.Add(this.employeeTab); this.adminTabControl.Controls.Add(this.stationTab); - this.adminTabControl.Location = new System.Drawing.Point(28, 76); - this.adminTabControl.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.adminTabControl.Location = new System.Drawing.Point(23, 63); this.adminTabControl.Name = "adminTabControl"; this.adminTabControl.SelectedIndex = 0; - this.adminTabControl.Size = new System.Drawing.Size(1672, 998); + this.adminTabControl.Size = new System.Drawing.Size(1368, 832); this.adminTabControl.TabIndex = 0; this.adminTabControl.UseSelectable = true; // @@ -136,16 +135,15 @@ private void InitializeComponent() this.menuTab.Controls.Add(this.metroLabel1); this.menuTab.HorizontalScrollbarBarColor = true; this.menuTab.HorizontalScrollbarHighlightOnWheel = false; - this.menuTab.HorizontalScrollbarSize = 12; + this.menuTab.HorizontalScrollbarSize = 10; this.menuTab.Location = new System.Drawing.Point(4, 38); - this.menuTab.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.menuTab.Name = "menuTab"; - this.menuTab.Size = new System.Drawing.Size(1664, 956); + this.menuTab.Size = new System.Drawing.Size(1360, 790); this.menuTab.TabIndex = 0; this.menuTab.Text = "Edit Menus"; this.menuTab.VerticalScrollbarBarColor = true; this.menuTab.VerticalScrollbarHighlightOnWheel = false; - this.menuTab.VerticalScrollbarSize = 12; + this.menuTab.VerticalScrollbarSize = 10; // // menuListBox // @@ -154,7 +152,7 @@ private void InitializeComponent() | 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 = 45; + this.menuListBox.ItemHeight = 38; this.menuListBox.Items.AddRange(new object[] { "Item1", "Item1", @@ -169,11 +167,10 @@ private void InitializeComponent() "Item3", "Item3", "Item3"}); - this.menuListBox.Location = new System.Drawing.Point(10, 83); - this.menuListBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.menuListBox.Location = new System.Drawing.Point(8, 69); this.menuListBox.Name = "menuListBox"; this.menuListBox.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended; - this.menuListBox.Size = new System.Drawing.Size(850, 814); + this.menuListBox.Size = new System.Drawing.Size(696, 650); this.menuListBox.TabIndex = 11; // // menuSelectionBox @@ -182,10 +179,9 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Right))); this.menuSelectionBox.FormattingEnabled = true; this.menuSelectionBox.ItemHeight = 23; - this.menuSelectionBox.Location = new System.Drawing.Point(155, 43); - this.menuSelectionBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.menuSelectionBox.Location = new System.Drawing.Point(127, 36); this.menuSelectionBox.Name = "menuSelectionBox"; - this.menuSelectionBox.Size = new System.Drawing.Size(388, 29); + this.menuSelectionBox.Size = new System.Drawing.Size(318, 29); this.menuSelectionBox.TabIndex = 10; this.menuSelectionBox.UseSelectable = true; // @@ -194,10 +190,9 @@ private void InitializeComponent() 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(1269, 853); - this.menuSaveButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.menuSaveButton.Location = new System.Drawing.Point(1038, 711); this.menuSaveButton.Name = "menuSaveButton"; - this.menuSaveButton.Size = new System.Drawing.Size(364, 54); + this.menuSaveButton.Size = new System.Drawing.Size(298, 45); this.menuSaveButton.TabIndex = 9; this.menuSaveButton.Text = "Save"; this.menuSaveButton.UseSelectable = true; @@ -207,10 +202,9 @@ private void InitializeComponent() 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(906, 854); - this.menuRevertButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.menuRevertButton.Location = new System.Drawing.Point(741, 712); this.menuRevertButton.Name = "menuRevertButton"; - this.menuRevertButton.Size = new System.Drawing.Size(356, 54); + this.menuRevertButton.Size = new System.Drawing.Size(291, 45); this.menuRevertButton.TabIndex = 8; this.menuRevertButton.Text = "Revert"; this.menuRevertButton.UseSelectable = true; @@ -223,21 +217,19 @@ private void InitializeComponent() 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(906, 344); - this.groupBox1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox1.Location = new System.Drawing.Point(741, 287); this.groupBox1.Name = "groupBox1"; - this.groupBox1.Padding = new System.Windows.Forms.Padding(10, 10, 10, 10); - this.groupBox1.Size = new System.Drawing.Size(727, 502); + this.groupBox1.Padding = new System.Windows.Forms.Padding(8, 8, 8, 8); + this.groupBox1.Size = new System.Drawing.Size(595, 418); this.groupBox1.TabIndex = 7; this.groupBox1.TabStop = false; this.groupBox1.Text = "Options"; // // label1 // - this.label1.Location = new System.Drawing.Point(7, 42); - this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label1.Location = new System.Drawing.Point(6, 35); this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(209, 43); + this.label1.Size = new System.Drawing.Size(171, 36); this.label1.TabIndex = 1; this.label1.Text = "Display Menu On:"; // @@ -247,17 +239,16 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.displayedOnDevices.FormattingEnabled = true; - this.displayedOnDevices.ItemHeight = 31; + this.displayedOnDevices.ItemHeight = 28; this.displayedOnDevices.Items.AddRange(new object[] { "Computer1", "Computer2", "Computer3", "Computer4"}); - this.displayedOnDevices.Location = new System.Drawing.Point(224, 42); - this.displayedOnDevices.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + 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(489, 438); + this.displayedOnDevices.Size = new System.Drawing.Size(401, 340); this.displayedOnDevices.Sorted = true; this.displayedOnDevices.TabIndex = 0; // @@ -269,11 +260,10 @@ private void InitializeComponent() this.menuGroup1.Controls.Add(this.metroButton2); this.menuGroup1.Controls.Add(this.metroButton1); this.menuGroup1.Font = new System.Drawing.Font("Segoe UI Light", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.menuGroup1.Location = new System.Drawing.Point(906, 76); - this.menuGroup1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.menuGroup1.Location = new System.Drawing.Point(741, 63); this.menuGroup1.Name = "menuGroup1"; - this.menuGroup1.Padding = new System.Windows.Forms.Padding(10, 10, 10, 10); - this.menuGroup1.Size = new System.Drawing.Size(727, 262); + this.menuGroup1.Padding = new System.Windows.Forms.Padding(8, 8, 8, 8); + this.menuGroup1.Size = new System.Drawing.Size(595, 218); this.menuGroup1.TabIndex = 6; this.menuGroup1.TabStop = false; this.menuGroup1.Text = "Edit Menus"; @@ -284,10 +274,9 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Right))); this.metroButton3.FontSize = MetroFramework.MetroButtonSize.Tall; this.metroButton3.FontWeight = MetroFramework.MetroButtonWeight.Regular; - this.metroButton3.Location = new System.Drawing.Point(485, 36); - this.metroButton3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.metroButton3.Location = new System.Drawing.Point(397, 30); this.metroButton3.Name = "metroButton3"; - this.metroButton3.Size = new System.Drawing.Size(229, 212); + this.metroButton3.Size = new System.Drawing.Size(187, 177); this.metroButton3.TabIndex = 6; this.metroButton3.Text = "Remove Menu"; this.metroButton3.UseSelectable = true; @@ -298,10 +287,9 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Right))); this.metroButton2.FontSize = MetroFramework.MetroButtonSize.Tall; this.metroButton2.FontWeight = MetroFramework.MetroButtonWeight.Regular; - this.metroButton2.Location = new System.Drawing.Point(249, 36); - this.metroButton2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.metroButton2.Location = new System.Drawing.Point(204, 30); this.metroButton2.Name = "metroButton2"; - this.metroButton2.Size = new System.Drawing.Size(229, 212); + this.metroButton2.Size = new System.Drawing.Size(187, 177); this.metroButton2.TabIndex = 5; this.metroButton2.Text = "Rename Menu"; this.metroButton2.UseSelectable = true; @@ -312,10 +300,9 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Right))); this.metroButton1.FontSize = MetroFramework.MetroButtonSize.Tall; this.metroButton1.FontWeight = MetroFramework.MetroButtonWeight.Regular; - this.metroButton1.Location = new System.Drawing.Point(13, 36); - this.metroButton1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.metroButton1.Location = new System.Drawing.Point(11, 30); this.metroButton1.Name = "metroButton1"; - this.metroButton1.Size = new System.Drawing.Size(229, 212); + this.metroButton1.Size = new System.Drawing.Size(187, 177); this.metroButton1.TabIndex = 4; this.metroButton1.Text = "Add Menu"; this.metroButton1.UseSelectable = true; @@ -325,10 +312,9 @@ private void InitializeComponent() 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(4, 28); - this.metroLabel1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.metroLabel1.Location = new System.Drawing.Point(3, 23); this.metroLabel1.Name = "metroLabel1"; - this.metroLabel1.Size = new System.Drawing.Size(856, 44); + 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; @@ -343,26 +329,24 @@ private void InitializeComponent() this.itemsTab.Controls.Add(this.metroLabel2); this.itemsTab.HorizontalScrollbarBarColor = true; this.itemsTab.HorizontalScrollbarHighlightOnWheel = false; - this.itemsTab.HorizontalScrollbarSize = 12; + this.itemsTab.HorizontalScrollbarSize = 10; this.itemsTab.Location = new System.Drawing.Point(4, 38); - this.itemsTab.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.itemsTab.Name = "itemsTab"; - this.itemsTab.Size = new System.Drawing.Size(1664, 956); + 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 = 12; + this.itemsTab.VerticalScrollbarSize = 10; // // 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(1269, 854); - this.itemsSaveButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.itemsSaveButton.Location = new System.Drawing.Point(1038, 712); this.itemsSaveButton.Name = "itemsSaveButton"; - this.itemsSaveButton.Size = new System.Drawing.Size(364, 54); + this.itemsSaveButton.Size = new System.Drawing.Size(298, 45); this.itemsSaveButton.TabIndex = 11; this.itemsSaveButton.Text = "Save"; this.itemsSaveButton.UseSelectable = true; @@ -374,7 +358,7 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Right))); this.itemListBox.Font = new System.Drawing.Font("Segoe UI Light", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.itemListBox.FormattingEnabled = true; - this.itemListBox.ItemHeight = 45; + this.itemListBox.ItemHeight = 38; this.itemListBox.Items.AddRange(new object[] { "Item1", "Item1", @@ -394,11 +378,10 @@ private void InitializeComponent() "Item3", "Item3", "Item3"}); - this.itemListBox.Location = new System.Drawing.Point(9, 83); - this.itemListBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.itemListBox.Location = new System.Drawing.Point(7, 69); this.itemListBox.Name = "itemListBox"; this.itemListBox.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended; - this.itemListBox.Size = new System.Drawing.Size(850, 814); + this.itemListBox.Size = new System.Drawing.Size(696, 650); this.itemListBox.TabIndex = 8; // // itemsRevertButton @@ -406,10 +389,9 @@ private void InitializeComponent() 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(906, 856); - this.itemsRevertButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.itemsRevertButton.Location = new System.Drawing.Point(741, 713); this.itemsRevertButton.Name = "itemsRevertButton"; - this.itemsRevertButton.Size = new System.Drawing.Size(356, 54); + this.itemsRevertButton.Size = new System.Drawing.Size(291, 45); this.itemsRevertButton.TabIndex = 10; this.itemsRevertButton.Text = "Revert"; this.itemsRevertButton.UseSelectable = true; @@ -428,11 +410,10 @@ private void InitializeComponent() this.groupBox2.Controls.Add(this.label2); this.groupBox2.Controls.Add(this.categoryListBox); this.groupBox2.Font = new System.Drawing.Font("Segoe UI Light", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupBox2.Location = new System.Drawing.Point(906, 284); - this.groupBox2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox2.Location = new System.Drawing.Point(741, 237); this.groupBox2.Name = "groupBox2"; - this.groupBox2.Padding = new System.Windows.Forms.Padding(10, 10, 10, 10); - this.groupBox2.Size = new System.Drawing.Size(727, 564); + this.groupBox2.Padding = new System.Windows.Forms.Padding(8, 8, 8, 8); + this.groupBox2.Size = new System.Drawing.Size(595, 470); this.groupBox2.TabIndex = 12; this.groupBox2.TabStop = false; this.groupBox2.Text = "Options"; @@ -442,10 +423,9 @@ private void InitializeComponent() 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(203, 224); - this.itemPrice.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.itemPrice.Location = new System.Drawing.Point(166, 187); this.itemPrice.Name = "itemPrice"; - this.itemPrice.Size = new System.Drawing.Size(153, 39); + this.itemPrice.Size = new System.Drawing.Size(125, 34); this.itemPrice.TabIndex = 9; // // itemDescriptionTextbox @@ -456,10 +436,9 @@ private void InitializeComponent() // // this.itemDescriptionTextbox.CustomButton.Image = null; - this.itemDescriptionTextbox.CustomButton.Location = new System.Drawing.Point(419, 1); - this.itemDescriptionTextbox.CustomButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.itemDescriptionTextbox.CustomButton.Location = new System.Drawing.Point(227, 1); this.itemDescriptionTextbox.CustomButton.Name = ""; - this.itemDescriptionTextbox.CustomButton.Size = new System.Drawing.Size(204, 200); + this.itemDescriptionTextbox.CustomButton.Size = new System.Drawing.Size(114, 116); this.itemDescriptionTextbox.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; this.itemDescriptionTextbox.CustomButton.TabIndex = 1; this.itemDescriptionTextbox.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; @@ -468,8 +447,7 @@ private void InitializeComponent() this.itemDescriptionTextbox.FontSize = MetroFramework.MetroTextBoxSize.Medium; this.itemDescriptionTextbox.Lines = new string[] { "metroTextBox1"}; - this.itemDescriptionTextbox.Location = new System.Drawing.Point(203, 42); - this.itemDescriptionTextbox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.itemDescriptionTextbox.Location = new System.Drawing.Point(166, 35); this.itemDescriptionTextbox.MaxLength = 32767; this.itemDescriptionTextbox.Multiline = true; this.itemDescriptionTextbox.Name = "itemDescriptionTextbox"; @@ -479,7 +457,7 @@ private void InitializeComponent() this.itemDescriptionTextbox.SelectionLength = 0; this.itemDescriptionTextbox.SelectionStart = 0; this.itemDescriptionTextbox.ShortcutsEnabled = true; - this.itemDescriptionTextbox.Size = new System.Drawing.Size(511, 169); + this.itemDescriptionTextbox.Size = new System.Drawing.Size(418, 141); this.itemDescriptionTextbox.TabIndex = 6; this.itemDescriptionTextbox.Text = "metroTextBox1"; this.itemDescriptionTextbox.UseSelectable = true; @@ -488,19 +466,17 @@ private void InitializeComponent() // // label5 // - this.label5.Location = new System.Drawing.Point(7, 220); - this.label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label5.Location = new System.Drawing.Point(6, 183); this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(188, 43); + 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(7, 42); - this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label4.Location = new System.Drawing.Point(6, 35); this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(188, 43); + this.label4.Size = new System.Drawing.Size(154, 36); this.label4.TabIndex = 4; this.label4.Text = "Description: "; // @@ -509,32 +485,29 @@ private void InitializeComponent() 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 = 31; + this.printingListBox.ItemHeight = 28; this.printingListBox.Items.AddRange(new object[] { "Cold", "Hot"}); - this.printingListBox.Location = new System.Drawing.Point(203, 479); - this.printingListBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.printingListBox.Location = new System.Drawing.Point(166, 399); this.printingListBox.Name = "printingListBox"; - this.printingListBox.Size = new System.Drawing.Size(510, 66); + this.printingListBox.Size = new System.Drawing.Size(418, 32); this.printingListBox.Sorted = true; this.printingListBox.TabIndex = 3; // // label3 // - this.label3.Location = new System.Drawing.Point(7, 479); - this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label3.Location = new System.Drawing.Point(6, 399); this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(182, 43); + 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(7, 299); - this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label2.Location = new System.Drawing.Point(6, 249); this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(188, 43); + this.label2.Size = new System.Drawing.Size(154, 36); this.label2.TabIndex = 1; this.label2.Text = "Category:"; // @@ -543,18 +516,17 @@ private void InitializeComponent() this.categoryListBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.categoryListBox.FormattingEnabled = true; - this.categoryListBox.ItemHeight = 31; + this.categoryListBox.ItemHeight = 28; this.categoryListBox.Items.AddRange(new object[] { "Appitizer", "Dessert", "Drink", "Entre", "Other"}); - this.categoryListBox.Location = new System.Drawing.Point(203, 283); - this.categoryListBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.categoryListBox.Location = new System.Drawing.Point(166, 236); this.categoryListBox.Name = "categoryListBox"; this.categoryListBox.SelectionMode = System.Windows.Forms.SelectionMode.MultiSimple; - this.categoryListBox.Size = new System.Drawing.Size(510, 159); + this.categoryListBox.Size = new System.Drawing.Size(418, 116); this.categoryListBox.Sorted = true; this.categoryListBox.TabIndex = 0; // @@ -566,11 +538,10 @@ private void InitializeComponent() this.groupBox3.Controls.Add(this.renameItemButton); this.groupBox3.Controls.Add(this.addItemButton); this.groupBox3.Font = new System.Drawing.Font("Segoe UI Light", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupBox3.Location = new System.Drawing.Point(906, 76); - this.groupBox3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox3.Location = new System.Drawing.Point(741, 63); this.groupBox3.Name = "groupBox3"; - this.groupBox3.Padding = new System.Windows.Forms.Padding(10, 10, 10, 10); - this.groupBox3.Size = new System.Drawing.Size(727, 202); + this.groupBox3.Padding = new System.Windows.Forms.Padding(8, 8, 8, 8); + this.groupBox3.Size = new System.Drawing.Size(595, 168); this.groupBox3.TabIndex = 11; this.groupBox3.TabStop = false; this.groupBox3.Text = "Edit Items"; @@ -581,10 +552,9 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Right))); this.removeItemButton.FontSize = MetroFramework.MetroButtonSize.Tall; this.removeItemButton.FontWeight = MetroFramework.MetroButtonWeight.Regular; - this.removeItemButton.Location = new System.Drawing.Point(485, 36); - this.removeItemButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.removeItemButton.Location = new System.Drawing.Point(397, 30); this.removeItemButton.Name = "removeItemButton"; - this.removeItemButton.Size = new System.Drawing.Size(229, 152); + this.removeItemButton.Size = new System.Drawing.Size(187, 127); this.removeItemButton.TabIndex = 6; this.removeItemButton.Text = "Remove Item(s)"; this.removeItemButton.UseSelectable = true; @@ -595,10 +565,9 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Right))); this.renameItemButton.FontSize = MetroFramework.MetroButtonSize.Tall; this.renameItemButton.FontWeight = MetroFramework.MetroButtonWeight.Regular; - this.renameItemButton.Location = new System.Drawing.Point(249, 36); - this.renameItemButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.renameItemButton.Location = new System.Drawing.Point(204, 30); this.renameItemButton.Name = "renameItemButton"; - this.renameItemButton.Size = new System.Drawing.Size(229, 152); + this.renameItemButton.Size = new System.Drawing.Size(187, 127); this.renameItemButton.TabIndex = 5; this.renameItemButton.Text = "Rename Item"; this.renameItemButton.UseSelectable = true; @@ -609,10 +578,9 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Right))); this.addItemButton.FontSize = MetroFramework.MetroButtonSize.Tall; this.addItemButton.FontWeight = MetroFramework.MetroButtonWeight.Regular; - this.addItemButton.Location = new System.Drawing.Point(13, 36); - this.addItemButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.addItemButton.Location = new System.Drawing.Point(11, 30); this.addItemButton.Name = "addItemButton"; - this.addItemButton.Size = new System.Drawing.Size(229, 152); + this.addItemButton.Size = new System.Drawing.Size(187, 127); this.addItemButton.TabIndex = 4; this.addItemButton.Text = "Add Item(s)"; this.addItemButton.UseSelectable = true; @@ -622,10 +590,9 @@ private void InitializeComponent() this.metroLabel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.metroLabel2.FontSize = MetroFramework.MetroLabelSize.Tall; - this.metroLabel2.Location = new System.Drawing.Point(4, 28); - this.metroLabel2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.metroLabel2.Location = new System.Drawing.Point(3, 23); this.metroLabel2.Name = "metroLabel2"; - this.metroLabel2.Size = new System.Drawing.Size(856, 44); + this.metroLabel2.Size = new System.Drawing.Size(700, 37); this.metroLabel2.TabIndex = 10; this.metroLabel2.Text = "Select Items"; this.metroLabel2.TextAlign = System.Drawing.ContentAlignment.BottomLeft; @@ -640,26 +607,24 @@ private void InitializeComponent() this.employeeTab.Controls.Add(this.metroLabel4); this.employeeTab.HorizontalScrollbarBarColor = true; this.employeeTab.HorizontalScrollbarHighlightOnWheel = false; - this.employeeTab.HorizontalScrollbarSize = 12; + this.employeeTab.HorizontalScrollbarSize = 10; this.employeeTab.Location = new System.Drawing.Point(4, 38); - this.employeeTab.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.employeeTab.Name = "employeeTab"; - this.employeeTab.Size = new System.Drawing.Size(1664, 956); + 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 = 12; + this.employeeTab.VerticalScrollbarSize = 10; // // 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(1269, 853); - this.metroButton4.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.metroButton4.Location = new System.Drawing.Point(1038, 711); this.metroButton4.Name = "metroButton4"; - this.metroButton4.Size = new System.Drawing.Size(364, 54); + this.metroButton4.Size = new System.Drawing.Size(298, 45); this.metroButton4.TabIndex = 21; this.metroButton4.Text = "Save"; this.metroButton4.UseSelectable = true; @@ -669,10 +634,9 @@ private void InitializeComponent() 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(906, 854); - this.metroButton5.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.metroButton5.Location = new System.Drawing.Point(741, 712); this.metroButton5.Name = "metroButton5"; - this.metroButton5.Size = new System.Drawing.Size(356, 54); + this.metroButton5.Size = new System.Drawing.Size(291, 45); this.metroButton5.TabIndex = 20; this.metroButton5.Text = "Revert"; this.metroButton5.UseSelectable = true; @@ -684,7 +648,7 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Right))); this.employeeListBox.Font = new System.Drawing.Font("Segoe UI Light", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.employeeListBox.FormattingEnabled = true; - this.employeeListBox.ItemHeight = 45; + this.employeeListBox.ItemHeight = 38; this.employeeListBox.Items.AddRange(new object[] { "Item1", "Item1", @@ -704,11 +668,10 @@ private void InitializeComponent() "Item3", "Item3", "Item3"}); - this.employeeListBox.Location = new System.Drawing.Point(9, 83); - this.employeeListBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.employeeListBox.Location = new System.Drawing.Point(7, 69); this.employeeListBox.Name = "employeeListBox"; this.employeeListBox.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended; - this.employeeListBox.Size = new System.Drawing.Size(850, 814); + this.employeeListBox.Size = new System.Drawing.Size(696, 650); this.employeeListBox.TabIndex = 16; // // groupBox6 @@ -727,11 +690,10 @@ private void InitializeComponent() this.groupBox6.Controls.Add(this.label7); this.groupBox6.Controls.Add(this.listBox2); this.groupBox6.Font = new System.Drawing.Font("Segoe UI Light", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupBox6.Location = new System.Drawing.Point(906, 344); - this.groupBox6.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox6.Location = new System.Drawing.Point(741, 287); this.groupBox6.Name = "groupBox6"; - this.groupBox6.Padding = new System.Windows.Forms.Padding(10, 10, 10, 10); - this.groupBox6.Size = new System.Drawing.Size(727, 502); + this.groupBox6.Padding = new System.Windows.Forms.Padding(8, 8, 8, 8); + this.groupBox6.Size = new System.Drawing.Size(595, 418); this.groupBox6.TabIndex = 19; this.groupBox6.TabStop = false; this.groupBox6.Text = "Options"; @@ -744,10 +706,9 @@ private void InitializeComponent() // // this.lastNameTextBox.CustomButton.Image = null; - this.lastNameTextBox.CustomButton.Location = new System.Drawing.Point(573, 1); - this.lastNameTextBox.CustomButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.lastNameTextBox.CustomButton.Location = new System.Drawing.Point(314, 2); this.lastNameTextBox.CustomButton.Name = ""; - this.lastNameTextBox.CustomButton.Size = new System.Drawing.Size(50, 49); + this.lastNameTextBox.CustomButton.Size = new System.Drawing.Size(25, 26); this.lastNameTextBox.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; this.lastNameTextBox.CustomButton.TabIndex = 1; this.lastNameTextBox.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; @@ -756,8 +717,7 @@ private void InitializeComponent() this.lastNameTextBox.FontSize = MetroFramework.MetroTextBoxSize.Medium; this.lastNameTextBox.Lines = new string[] { "metroTextBox2"}; - this.lastNameTextBox.Location = new System.Drawing.Point(203, 157); - this.lastNameTextBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.lastNameTextBox.Location = new System.Drawing.Point(166, 131); this.lastNameTextBox.MaxLength = 32767; this.lastNameTextBox.Multiline = true; this.lastNameTextBox.Name = "lastNameTextBox"; @@ -767,7 +727,7 @@ private void InitializeComponent() this.lastNameTextBox.SelectionLength = 0; this.lastNameTextBox.SelectionStart = 0; this.lastNameTextBox.ShortcutsEnabled = true; - this.lastNameTextBox.Size = new System.Drawing.Size(511, 43); + this.lastNameTextBox.Size = new System.Drawing.Size(418, 36); this.lastNameTextBox.TabIndex = 17; this.lastNameTextBox.Text = "metroTextBox2"; this.lastNameTextBox.UseSelectable = true; @@ -776,10 +736,9 @@ private void InitializeComponent() // // label11 // - this.label11.Location = new System.Drawing.Point(7, 157); - this.label11.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label11.Location = new System.Drawing.Point(6, 131); this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(188, 43); + this.label11.Size = new System.Drawing.Size(154, 36); this.label11.TabIndex = 16; this.label11.Text = "Last Name:"; // @@ -791,10 +750,9 @@ private void InitializeComponent() // // this.firstNameTextBox.CustomButton.Image = null; - this.firstNameTextBox.CustomButton.Location = new System.Drawing.Point(573, 1); - this.firstNameTextBox.CustomButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.firstNameTextBox.CustomButton.Location = new System.Drawing.Point(314, 2); this.firstNameTextBox.CustomButton.Name = ""; - this.firstNameTextBox.CustomButton.Size = new System.Drawing.Size(50, 49); + this.firstNameTextBox.CustomButton.Size = new System.Drawing.Size(25, 26); this.firstNameTextBox.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; this.firstNameTextBox.CustomButton.TabIndex = 1; this.firstNameTextBox.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; @@ -803,8 +761,7 @@ private void InitializeComponent() this.firstNameTextBox.FontSize = MetroFramework.MetroTextBoxSize.Medium; this.firstNameTextBox.Lines = new string[] { "metroTextBox1"}; - this.firstNameTextBox.Location = new System.Drawing.Point(203, 100); - this.firstNameTextBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.firstNameTextBox.Location = new System.Drawing.Point(166, 83); this.firstNameTextBox.MaxLength = 32767; this.firstNameTextBox.Multiline = true; this.firstNameTextBox.Name = "firstNameTextBox"; @@ -814,7 +771,7 @@ private void InitializeComponent() this.firstNameTextBox.SelectionLength = 0; this.firstNameTextBox.SelectionStart = 0; this.firstNameTextBox.ShortcutsEnabled = true; - this.firstNameTextBox.Size = new System.Drawing.Size(511, 43); + this.firstNameTextBox.Size = new System.Drawing.Size(418, 36); this.firstNameTextBox.TabIndex = 15; this.firstNameTextBox.Text = "metroTextBox1"; this.firstNameTextBox.UseSelectable = true; @@ -823,10 +780,9 @@ private void InitializeComponent() // // label10 // - this.label10.Location = new System.Drawing.Point(7, 100); - this.label10.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label10.Location = new System.Drawing.Point(6, 83); this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(188, 43); + this.label10.Size = new System.Drawing.Size(154, 36); this.label10.TabIndex = 14; this.label10.Text = "First Name:"; // @@ -834,15 +790,14 @@ private void InitializeComponent() // 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(203, 224); - this.pinNumber.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + 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(153, 39); + this.pinNumber.Size = new System.Drawing.Size(125, 34); this.pinNumber.TabIndex = 13; // // usernameTextBox @@ -853,10 +808,9 @@ private void InitializeComponent() // // this.usernameTextBox.CustomButton.Image = null; - this.usernameTextBox.CustomButton.Location = new System.Drawing.Point(573, 1); - this.usernameTextBox.CustomButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.usernameTextBox.CustomButton.Location = new System.Drawing.Point(314, 2); this.usernameTextBox.CustomButton.Name = ""; - this.usernameTextBox.CustomButton.Size = new System.Drawing.Size(50, 49); + this.usernameTextBox.CustomButton.Size = new System.Drawing.Size(25, 26); this.usernameTextBox.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; this.usernameTextBox.CustomButton.TabIndex = 1; this.usernameTextBox.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; @@ -865,8 +819,7 @@ private void InitializeComponent() this.usernameTextBox.FontSize = MetroFramework.MetroTextBoxSize.Medium; this.usernameTextBox.Lines = new string[] { "metroTextBox1"}; - this.usernameTextBox.Location = new System.Drawing.Point(203, 42); - this.usernameTextBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.usernameTextBox.Location = new System.Drawing.Point(166, 35); this.usernameTextBox.MaxLength = 32767; this.usernameTextBox.Multiline = true; this.usernameTextBox.Name = "usernameTextBox"; @@ -876,7 +829,7 @@ private void InitializeComponent() this.usernameTextBox.SelectionLength = 0; this.usernameTextBox.SelectionStart = 0; this.usernameTextBox.ShortcutsEnabled = true; - this.usernameTextBox.Size = new System.Drawing.Size(511, 43); + this.usernameTextBox.Size = new System.Drawing.Size(418, 36); this.usernameTextBox.TabIndex = 12; this.usernameTextBox.Text = "metroTextBox1"; this.usernameTextBox.UseSelectable = true; @@ -885,28 +838,25 @@ private void InitializeComponent() // // pin // - this.pin.Location = new System.Drawing.Point(7, 220); - this.pin.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.pin.Location = new System.Drawing.Point(6, 183); this.pin.Name = "pin"; - this.pin.Size = new System.Drawing.Size(188, 43); + 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(7, 42); - this.label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label9.Location = new System.Drawing.Point(6, 35); this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(188, 43); + 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(7, 284); - this.label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label7.Location = new System.Drawing.Point(6, 237); this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(188, 43); + this.label7.Size = new System.Drawing.Size(154, 36); this.label7.TabIndex = 1; this.label7.Text = "Roles:"; // @@ -916,17 +866,16 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.listBox2.FormattingEnabled = true; - this.listBox2.ItemHeight = 31; + this.listBox2.ItemHeight = 28; this.listBox2.Items.AddRange(new object[] { "Admin", "Chef", "Host", "Waiter"}); - this.listBox2.Location = new System.Drawing.Point(203, 284); - this.listBox2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.listBox2.Location = new System.Drawing.Point(166, 237); this.listBox2.Name = "listBox2"; this.listBox2.SelectionMode = System.Windows.Forms.SelectionMode.MultiSimple; - this.listBox2.Size = new System.Drawing.Size(510, 128); + this.listBox2.Size = new System.Drawing.Size(418, 88); this.listBox2.TabIndex = 0; // // groupBox7 @@ -936,11 +885,10 @@ private void InitializeComponent() this.groupBox7.Controls.Add(this.employeeRemoveButton); this.groupBox7.Controls.Add(this.employeeAddButton); this.groupBox7.Font = new System.Drawing.Font("Segoe UI Light", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupBox7.Location = new System.Drawing.Point(906, 76); - this.groupBox7.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox7.Location = new System.Drawing.Point(741, 63); this.groupBox7.Name = "groupBox7"; - this.groupBox7.Padding = new System.Windows.Forms.Padding(10, 10, 10, 10); - this.groupBox7.Size = new System.Drawing.Size(727, 262); + this.groupBox7.Padding = new System.Windows.Forms.Padding(8, 8, 8, 8); + this.groupBox7.Size = new System.Drawing.Size(595, 218); this.groupBox7.TabIndex = 18; this.groupBox7.TabStop = false; this.groupBox7.Text = "Edit Employees"; @@ -951,10 +899,9 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Right))); this.employeeRemoveButton.FontSize = MetroFramework.MetroButtonSize.Tall; this.employeeRemoveButton.FontWeight = MetroFramework.MetroButtonWeight.Regular; - this.employeeRemoveButton.Location = new System.Drawing.Point(363, 36); - this.employeeRemoveButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.employeeRemoveButton.Location = new System.Drawing.Point(297, 30); this.employeeRemoveButton.Name = "employeeRemoveButton"; - this.employeeRemoveButton.Size = new System.Drawing.Size(351, 212); + this.employeeRemoveButton.Size = new System.Drawing.Size(287, 177); this.employeeRemoveButton.TabIndex = 6; this.employeeRemoveButton.Text = "Remove Employee"; this.employeeRemoveButton.UseSelectable = true; @@ -965,10 +912,9 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Right))); this.employeeAddButton.FontSize = MetroFramework.MetroButtonSize.Tall; this.employeeAddButton.FontWeight = MetroFramework.MetroButtonWeight.Regular; - this.employeeAddButton.Location = new System.Drawing.Point(13, 36); - this.employeeAddButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.employeeAddButton.Location = new System.Drawing.Point(11, 30); this.employeeAddButton.Name = "employeeAddButton"; - this.employeeAddButton.Size = new System.Drawing.Size(342, 212); + this.employeeAddButton.Size = new System.Drawing.Size(280, 177); this.employeeAddButton.TabIndex = 4; this.employeeAddButton.Text = "Add Employee"; this.employeeAddButton.UseSelectable = true; @@ -978,10 +924,9 @@ private void InitializeComponent() this.metroLabel4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.metroLabel4.FontSize = MetroFramework.MetroLabelSize.Tall; - this.metroLabel4.Location = new System.Drawing.Point(4, 28); - this.metroLabel4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.metroLabel4.Location = new System.Drawing.Point(3, 23); this.metroLabel4.Name = "metroLabel4"; - this.metroLabel4.Size = new System.Drawing.Size(856, 44); + this.metroLabel4.Size = new System.Drawing.Size(700, 37); this.metroLabel4.TabIndex = 17; this.metroLabel4.Text = "Select Employee"; this.metroLabel4.TextAlign = System.Drawing.ContentAlignment.BottomLeft; @@ -996,26 +941,24 @@ private void InitializeComponent() this.stationTab.Controls.Add(this.metroLabel3); this.stationTab.HorizontalScrollbarBarColor = true; this.stationTab.HorizontalScrollbarHighlightOnWheel = false; - this.stationTab.HorizontalScrollbarSize = 12; + this.stationTab.HorizontalScrollbarSize = 10; this.stationTab.Location = new System.Drawing.Point(4, 38); - this.stationTab.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.stationTab.Name = "stationTab"; - this.stationTab.Size = new System.Drawing.Size(1664, 956); + 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 = 12; + 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(1269, 853); - this.stationSaveButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.stationSaveButton.Location = new System.Drawing.Point(1038, 711); this.stationSaveButton.Name = "stationSaveButton"; - this.stationSaveButton.Size = new System.Drawing.Size(364, 54); + this.stationSaveButton.Size = new System.Drawing.Size(298, 45); this.stationSaveButton.TabIndex = 15; this.stationSaveButton.Text = "Save"; this.stationSaveButton.UseSelectable = true; @@ -1025,10 +968,9 @@ private void InitializeComponent() 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(906, 854); - this.stationRevertButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.stationRevertButton.Location = new System.Drawing.Point(741, 712); this.stationRevertButton.Name = "stationRevertButton"; - this.stationRevertButton.Size = new System.Drawing.Size(356, 54); + this.stationRevertButton.Size = new System.Drawing.Size(291, 45); this.stationRevertButton.TabIndex = 14; this.stationRevertButton.Text = "Revert"; this.stationRevertButton.UseSelectable = true; @@ -1040,7 +982,7 @@ private void InitializeComponent() | 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 = 45; + this.stationListBox.ItemHeight = 38; this.stationListBox.Items.AddRange(new object[] { "Item1", "Item1", @@ -1060,11 +1002,10 @@ private void InitializeComponent() "Item3", "Item3", "Item3"}); - this.stationListBox.Location = new System.Drawing.Point(9, 83); - this.stationListBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + 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(850, 814); + this.stationListBox.Size = new System.Drawing.Size(696, 650); this.stationListBox.TabIndex = 10; // // groupBox4 @@ -1075,21 +1016,19 @@ private void InitializeComponent() 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(906, 344); - this.groupBox4.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox4.Location = new System.Drawing.Point(741, 287); this.groupBox4.Name = "groupBox4"; - this.groupBox4.Padding = new System.Windows.Forms.Padding(10, 10, 10, 10); - this.groupBox4.Size = new System.Drawing.Size(727, 502); + this.groupBox4.Padding = new System.Windows.Forms.Padding(8, 8, 8, 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(7, 42); - this.label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label6.Location = new System.Drawing.Point(6, 35); this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(209, 43); + this.label6.Size = new System.Drawing.Size(171, 36); this.label6.TabIndex = 1; this.label6.Text = "Station Type:"; // @@ -1099,16 +1038,15 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.stationTypeListBox.FormattingEnabled = true; - this.stationTypeListBox.ItemHeight = 31; + 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(224, 42); - this.stationTypeListBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.stationTypeListBox.Location = new System.Drawing.Point(183, 35); this.stationTypeListBox.Name = "stationTypeListBox"; - this.stationTypeListBox.Size = new System.Drawing.Size(489, 407); + this.stationTypeListBox.Size = new System.Drawing.Size(401, 340); this.stationTypeListBox.Sorted = true; this.stationTypeListBox.TabIndex = 0; // @@ -1120,11 +1058,10 @@ private void InitializeComponent() 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(906, 76); - this.groupBox5.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.groupBox5.Location = new System.Drawing.Point(741, 63); this.groupBox5.Name = "groupBox5"; - this.groupBox5.Padding = new System.Windows.Forms.Padding(10, 10, 10, 10); - this.groupBox5.Size = new System.Drawing.Size(727, 262); + this.groupBox5.Padding = new System.Windows.Forms.Padding(8, 8, 8, 8); + this.groupBox5.Size = new System.Drawing.Size(595, 218); this.groupBox5.TabIndex = 12; this.groupBox5.TabStop = false; this.groupBox5.Text = "Edit Stations"; @@ -1135,10 +1072,9 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Right))); this.stationRemoveButton.FontSize = MetroFramework.MetroButtonSize.Tall; this.stationRemoveButton.FontWeight = MetroFramework.MetroButtonWeight.Regular; - this.stationRemoveButton.Location = new System.Drawing.Point(485, 36); - this.stationRemoveButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.stationRemoveButton.Location = new System.Drawing.Point(397, 30); this.stationRemoveButton.Name = "stationRemoveButton"; - this.stationRemoveButton.Size = new System.Drawing.Size(229, 212); + this.stationRemoveButton.Size = new System.Drawing.Size(187, 177); this.stationRemoveButton.TabIndex = 6; this.stationRemoveButton.Text = "Remove Station"; this.stationRemoveButton.UseSelectable = true; @@ -1149,10 +1085,9 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Right))); this.stationRenameButton.FontSize = MetroFramework.MetroButtonSize.Tall; this.stationRenameButton.FontWeight = MetroFramework.MetroButtonWeight.Regular; - this.stationRenameButton.Location = new System.Drawing.Point(249, 36); - this.stationRenameButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.stationRenameButton.Location = new System.Drawing.Point(204, 30); this.stationRenameButton.Name = "stationRenameButton"; - this.stationRenameButton.Size = new System.Drawing.Size(229, 212); + this.stationRenameButton.Size = new System.Drawing.Size(187, 177); this.stationRenameButton.TabIndex = 5; this.stationRenameButton.Text = "Rename Station"; this.stationRenameButton.UseSelectable = true; @@ -1163,10 +1098,9 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Right))); this.stationAddButton.FontSize = MetroFramework.MetroButtonSize.Tall; this.stationAddButton.FontWeight = MetroFramework.MetroButtonWeight.Regular; - this.stationAddButton.Location = new System.Drawing.Point(13, 36); - this.stationAddButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.stationAddButton.Location = new System.Drawing.Point(11, 30); this.stationAddButton.Name = "stationAddButton"; - this.stationAddButton.Size = new System.Drawing.Size(229, 212); + this.stationAddButton.Size = new System.Drawing.Size(187, 177); this.stationAddButton.TabIndex = 4; this.stationAddButton.Text = "Add Station"; this.stationAddButton.UseSelectable = true; @@ -1176,23 +1110,20 @@ private void InitializeComponent() 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(4, 28); - this.metroLabel3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.metroLabel3.Location = new System.Drawing.Point(3, 23); this.metroLabel3.Name = "metroLabel3"; - this.metroLabel3.Size = new System.Drawing.Size(856, 44); + 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; // // AdminStationView // - this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 24F); + this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(1728, 1102); + this.ClientSize = new System.Drawing.Size(1414, 918); this.Controls.Add(this.adminTabControl); - this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.Name = "AdminStationView"; - this.Padding = new System.Windows.Forms.Padding(24, 72, 24, 24); this.Load += new System.EventHandler(this.AdminStationView_Load); this.adminTabControl.ResumeLayout(false); this.menuTab.ResumeLayout(false); diff --git a/Enigma/StationsGUI/AdminStationView.cs b/Enigma/StationsGUI/AdminStationView.cs index 784c900..c1e2cc7 100644 --- a/Enigma/StationsGUI/AdminStationView.cs +++ b/Enigma/StationsGUI/AdminStationView.cs @@ -1,5 +1,7 @@ -using EnigmaX.Classes; +using EnigmaX; +using EnigmaX.Classes; using MetroFramework.Forms; +using MySql.Data.MySqlClient; using System; using System.Collections.Generic; using System.ComponentModel; @@ -15,6 +17,11 @@ namespace Enigma.StationsGUI public partial class AdminStationView : MetroForm { Employee loggedIn; + List menuItems = new List(); + List enigmaMenus = new List(); + List employees = new List(); + List stations = new List(); + public AdminStationView(Employee loggedIn) { InitializeComponent(); @@ -23,15 +30,23 @@ public AdminStationView(Employee loggedIn) private void AdminStationView_Load(object sender, EventArgs e) { - + } private void loadAllData() { - + loadMenus(); + loadMenuItems(); + loadStations(); + loadEmployees(); } private void loadMenus() { - + DBConnect db = new DBConnect(); + List> menus = db.ReadCommand("SELECT * FROM Menus", "id", "title", "items"); + foreach (Dictionary menu in menus) { + EnigmaMenu enigmaMenu = new EnigmaMenu(Convert.ToInt32(menu["id"]), menu["title"], EnigmaMenu.stringToItemList(menu["items"])); + enigmaMenus.Add(enigmaMenu); + } } private void loadMenuItems() diff --git a/EnigmaX/Classes/Menu.cs b/EnigmaX/Classes/EnigmaMenu.cs similarity index 54% rename from EnigmaX/Classes/Menu.cs rename to EnigmaX/Classes/EnigmaMenu.cs index 9e80983..7ea1c03 100644 --- a/EnigmaX/Classes/Menu.cs +++ b/EnigmaX/Classes/EnigmaMenu.cs @@ -1,4 +1,5 @@ -using System; +using MySql.Data.MySqlClient; +using System; using System.Collections.Generic; using System.Linq; using System.Text; @@ -6,13 +7,13 @@ namespace EnigmaX.Classes { - public class Menu + public class EnigmaMenu { private int _id; private string _title; - private List _items; + private List _items; - public Menu(int id, string title, List items) { + public EnigmaMenu(int id, string title, List items) { _id = id; _title = title; _items = items; @@ -27,7 +28,7 @@ public string Title { } } - public List Items + public List Items { get { @@ -43,5 +44,13 @@ public void updateMenuInDB() { } + public static List stringToItemList(string items) { + List itemList = new List(); + foreach (string item in items.Split('|')) { + itemList.Add(EnigmaMenuItem.idToMenuItem(Convert.ToInt32(item))); + } + return itemList; + } + } } diff --git a/EnigmaX/Classes/EnigmaMenuItem.cs b/EnigmaX/Classes/EnigmaMenuItem.cs new file mode 100644 index 0000000..131cb76 --- /dev/null +++ b/EnigmaX/Classes/EnigmaMenuItem.cs @@ -0,0 +1,59 @@ +using MySql.Data.MySqlClient; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace EnigmaX.Classes +{ + + public enum MenuItemType { appitizer, entre, dessert, drink, other }; + public enum PrintingStationType { hot, cold }; + + public class EnigmaMenuItem + { + + private int _id = 0; + private string _title = ""; + private string _description = ""; + private float _price; + private MenuItemType _itemType; + private PrintingStationType _printingType; + + public EnigmaMenuItem(int id, string title, string description, float price, MenuItemType itemType, PrintingStationType printingType) { + _id = id; + _title = title; + _description = description; + _price = price; + _itemType = itemType; + _printingType = printingType; + } + + public string Title { + get { + return _title; + } + set { + _title = value; + } + } + + public static EnigmaMenuItem idToMenuItem(int id) + { + DBConnect db = new DBConnect(); + MySqlCommand conn = new MySqlCommand("SELECT * FROM MenuItems WHERE id = @id LIMIT 1"); + conn.Parameters.AddWithValue("@id", id.ToString()); + List> result = db.ReadCommand(conn, "title", "title", "description", "price", "category", "printingStation"); + if (result.Count > 0) + { + return new EnigmaMenuItem(id, result[0]["title"], result[0]["description"], float.Parse(result[0]["price"]), (MenuItemType)Enum.Parse(typeof(MenuItemType), result[0]["category"]), (PrintingStationType)Enum.Parse(typeof(PrintingStationType), result[0]["printingStation"])); + } + else + { + return null; + } + } + + } +} diff --git a/EnigmaX/Classes/MenuItem.cs b/EnigmaX/Classes/MenuItem.cs deleted file mode 100644 index bd3da2e..0000000 --- a/EnigmaX/Classes/MenuItem.cs +++ /dev/null @@ -1,42 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace EnigmaX.Classes -{ - - public enum MenuItemType { appitizer, entre, dessert, drink, other }; - public enum PrintingStationType { hot, cold }; - - public class MenuItem - { - - private int _id = 0; - private string _title = ""; - private string _description = ""; - private float _price; - private MenuItemType _itemType; - private PrintingStationType _printingType; - - public MenuItem(int id, string title, string description, float price, MenuItemType itemType, PrintingStationType printingType) { - _id = id; - _title = title; - _description = description; - _price = price; - _itemType = itemType; - _printingType = printingType; - } - - public string Title { - get { - return _title; - } - set { - _title = value; - } - } - - } -} diff --git a/EnigmaX/EnigmaX.csproj b/EnigmaX/EnigmaX.csproj index 5568679..99db8d0 100644 --- a/EnigmaX/EnigmaX.csproj +++ b/EnigmaX/EnigmaX.csproj @@ -62,8 +62,8 @@ - - + +