From 513f0abde26087a25b2d4cff7687e77795218297 Mon Sep 17 00:00:00 2001 From: Evan Langlais Date: Mon, 27 Mar 2017 23:05:05 -0400 Subject: [PATCH 1/7] Created the AdminStation GUI and updated PinScreen --- Enigma/Enigma.csproj | 10 + Enigma/EnigmaMain.Designer.cs | 1 + Enigma/EnigmaMain.cs | 7 + Enigma/Stations/AdminStation.cs | 21 + .../StationsGUI/AdminStationView.Designer.cs | 1270 +++++++++++++++++ Enigma/StationsGUI/AdminStationView.cs | 29 + Enigma/StationsGUI/AdminStationView.resx | 120 ++ EnigmaX/GUI/PinScreen.Designer.cs | 24 +- EnigmaX/GUI/PinScreen.resx | 3 + 9 files changed, 1484 insertions(+), 1 deletion(-) create mode 100644 Enigma/Stations/AdminStation.cs create mode 100644 Enigma/StationsGUI/AdminStationView.Designer.cs create mode 100644 Enigma/StationsGUI/AdminStationView.cs create mode 100644 Enigma/StationsGUI/AdminStationView.resx diff --git a/Enigma/Enigma.csproj b/Enigma/Enigma.csproj index e116304..d49a5b7 100644 --- a/Enigma/Enigma.csproj +++ b/Enigma/Enigma.csproj @@ -92,6 +92,12 @@ EnigmaMain.cs + + Form + + + AdminStationView.cs + Form @@ -112,6 +118,7 @@ WaiterStationView.cs + @@ -130,6 +137,9 @@ EnigmaMain.cs + + AdminStationView.cs + DebugStationView.cs diff --git a/Enigma/EnigmaMain.Designer.cs b/Enigma/EnigmaMain.Designer.cs index 84c3c84..60c5535 100644 --- a/Enigma/EnigmaMain.Designer.cs +++ b/Enigma/EnigmaMain.Designer.cs @@ -72,6 +72,7 @@ private void InitializeComponent() this.adminButton.TabIndex = 3; this.adminButton.Text = "Start Admin Station"; this.adminButton.UseSelectable = true; + this.adminButton.Click += new System.EventHandler(this.adminButton_Click); // // debugButton // diff --git a/Enigma/EnigmaMain.cs b/Enigma/EnigmaMain.cs index a9c300f..d8b2d47 100644 --- a/Enigma/EnigmaMain.cs +++ b/Enigma/EnigmaMain.cs @@ -66,5 +66,12 @@ private void metroButton1_Click(object sender, EventArgs e) PinScreen pinScreen = new PinScreen(EmployeeRole.waiter); pinScreen.ShowDialog(); } + + private void adminButton_Click(object sender, EventArgs e) + { + AdminStation station = new AdminStation("debugadmin"); + loadedStations.Add(station); + station.showView(); + } } } diff --git a/Enigma/Stations/AdminStation.cs b/Enigma/Stations/AdminStation.cs new file mode 100644 index 0000000..e1679e8 --- /dev/null +++ b/Enigma/Stations/AdminStation.cs @@ -0,0 +1,21 @@ +using EnigmaX.Classes; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Enigma.Stations +{ + class AdminStation : Station + { + + public AdminStation(string stationId) : base(StationTypeDef.admin, stationId) { + + Employee activeEmployee = SystemFunctions.showPinScreenUntilAuthenticated(EmployeeRole.admin); + view = new StationsGUI.AdminStationView(activeEmployee); + + } + + } +} diff --git a/Enigma/StationsGUI/AdminStationView.Designer.cs b/Enigma/StationsGUI/AdminStationView.Designer.cs new file mode 100644 index 0000000..0f05cd7 --- /dev/null +++ b/Enigma/StationsGUI/AdminStationView.Designer.cs @@ -0,0 +1,1270 @@ +namespace Enigma.StationsGUI +{ + partial class AdminStationView + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + 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.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.itemListBox = new System.Windows.Forms.ListBox(); + this.groupBox2 = new System.Windows.Forms.GroupBox(); + this.label2 = new System.Windows.Forms.Label(); + this.categoryListBox = new System.Windows.Forms.ListBox(); + this.groupBox3 = new System.Windows.Forms.GroupBox(); + this.removeItemButton = new MetroFramework.Controls.MetroButton(); + 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.stationSaveButton = new MetroFramework.Controls.MetroButton(); + this.stationRevertButton = new MetroFramework.Controls.MetroButton(); + this.stationListBox = new System.Windows.Forms.ListBox(); + this.groupBox4 = new System.Windows.Forms.GroupBox(); + this.label6 = new System.Windows.Forms.Label(); + this.stationTypeListBox = new System.Windows.Forms.ListBox(); + this.groupBox5 = new System.Windows.Forms.GroupBox(); + this.stationRemoveButton = new MetroFramework.Controls.MetroButton(); + 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.adminTabControl.SuspendLayout(); + this.menuTab.SuspendLayout(); + this.itemsTab.SuspendLayout(); + this.employeeTab.SuspendLayout(); + this.menuTabBar.SuspendLayout(); + this.menuGroup1.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.stationTab.SuspendLayout(); + this.groupBox2.SuspendLayout(); + this.groupBox3.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.itemPrice)).BeginInit(); + this.groupBox4.SuspendLayout(); + this.groupBox5.SuspendLayout(); + this.groupBox6.SuspendLayout(); + this.groupBox7.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pinNumber)).BeginInit(); + this.SuspendLayout(); + // + // adminTabControl + // + this.adminTabControl.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.adminTabControl.Controls.Add(this.menuTab); + 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(23, 63); + this.adminTabControl.Name = "adminTabControl"; + this.adminTabControl.SelectedIndex = 0; + this.adminTabControl.Size = new System.Drawing.Size(1368, 832); + this.adminTabControl.TabIndex = 0; + this.adminTabControl.UseSelectable = true; + // + // menuTab + // + 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; + this.menuTab.Location = new System.Drawing.Point(4, 38); + this.menuTab.Name = "menuTab"; + 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 = 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 + // + 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; + // + // menuTabBar + // + 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; + // + // metroLabel1 + // + 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; + // + // dummyTab + // + 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; + // + // metroButton1 + // + this.metroButton1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | 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; + // + // menuGroup1 + // + this.menuGroup1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.menuGroup1.BackColor = System.Drawing.Color.Transparent; + this.menuGroup1.Controls.Add(this.metroButton3); + 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(741, 63); + this.menuGroup1.Name = "menuGroup1"; + this.menuGroup1.Padding = new System.Windows.Forms.Padding(8); + this.menuGroup1.Size = new System.Drawing.Size(595, 218); + this.menuGroup1.TabIndex = 6; + 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) + | System.Windows.Forms.AnchorStyles.Right))); + this.metroButton3.FontSize = MetroFramework.MetroButtonSize.Tall; + this.metroButton3.FontWeight = MetroFramework.MetroButtonWeight.Regular; + this.metroButton3.Location = new System.Drawing.Point(397, 30); + this.metroButton3.Name = "metroButton3"; + this.metroButton3.Size = new System.Drawing.Size(187, 177); + this.metroButton3.TabIndex = 6; + this.metroButton3.Text = "Remove Menu"; + this.metroButton3.UseSelectable = true; + // + // groupBox1 + // + this.groupBox1.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"; + // + // displayedOnDevices + // + 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.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.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:"; + // + // stationTab + // + 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; + // + // tabMenuBox + // + 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; + // + // itemListBox + // + this.itemListBox.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.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 = 38; + this.itemListBox.Items.AddRange(new object[] { + "Item1", + "Item1", + "Item1", + "Item1", + "Item1", + "Item1", + "Item2", + "Item2", + "Item2", + "Item2", + "Item2", + "Item2", + "Item3", + "Item3", + "Item3", + "Item3", + "Item3", + "Item3"}); + 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(696, 688); + this.itemListBox.TabIndex = 8; + // + // groupBox2 + // + this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); + this.groupBox2.BackColor = System.Drawing.Color.Transparent; + this.groupBox2.Controls.Add(this.itemPrice); + this.groupBox2.Controls.Add(this.itemDescriptionTextbox); + this.groupBox2.Controls.Add(this.label5); + this.groupBox2.Controls.Add(this.label4); + this.groupBox2.Controls.Add(this.printingListBox); + this.groupBox2.Controls.Add(this.label3); + 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(741, 237); + this.groupBox2.Name = "groupBox2"; + this.groupBox2.Padding = new System.Windows.Forms.Padding(8); + this.groupBox2.Size = new System.Drawing.Size(595, 470); + this.groupBox2.TabIndex = 12; + this.groupBox2.TabStop = false; + this.groupBox2.Text = "Options"; + // + // label2 + // + this.label2.Location = new System.Drawing.Point(6, 249); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(154, 36); + this.label2.TabIndex = 1; + this.label2.Text = "Category:"; + // + // categoryListBox + // + 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 = 28; + this.categoryListBox.Items.AddRange(new object[] { + "Appitizer", + "Dessert", + "Drink", + "Entre", + "Other"}); + 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(418, 144); + this.categoryListBox.Sorted = true; + this.categoryListBox.TabIndex = 0; + // + // groupBox3 + // + this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.groupBox3.BackColor = System.Drawing.Color.Transparent; + this.groupBox3.Controls.Add(this.removeItemButton); + 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(741, 63); + this.groupBox3.Name = "groupBox3"; + this.groupBox3.Padding = new System.Windows.Forms.Padding(8); + this.groupBox3.Size = new System.Drawing.Size(595, 168); + this.groupBox3.TabIndex = 11; + this.groupBox3.TabStop = false; + this.groupBox3.Text = "Edit Items"; + // + // removeItemButton + // + this.removeItemButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); + this.removeItemButton.FontSize = MetroFramework.MetroButtonSize.Tall; + this.removeItemButton.FontWeight = MetroFramework.MetroButtonWeight.Regular; + this.removeItemButton.Location = new System.Drawing.Point(397, 30); + this.removeItemButton.Name = "removeItemButton"; + this.removeItemButton.Size = new System.Drawing.Size(187, 127); + this.removeItemButton.TabIndex = 6; + this.removeItemButton.Text = "Remove Item(s)"; + this.removeItemButton.UseSelectable = true; + // + // renameItemButton + // + this.renameItemButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); + this.renameItemButton.FontSize = MetroFramework.MetroButtonSize.Tall; + this.renameItemButton.FontWeight = MetroFramework.MetroButtonWeight.Regular; + this.renameItemButton.Location = new System.Drawing.Point(204, 30); + this.renameItemButton.Name = "renameItemButton"; + this.renameItemButton.Size = new System.Drawing.Size(187, 127); + this.renameItemButton.TabIndex = 5; + this.renameItemButton.Text = "Rename Item"; + this.renameItemButton.UseSelectable = true; + // + // addItemButton + // + this.addItemButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); + this.addItemButton.FontSize = MetroFramework.MetroButtonSize.Tall; + this.addItemButton.FontWeight = MetroFramework.MetroButtonWeight.Regular; + this.addItemButton.Location = new System.Drawing.Point(11, 30); + this.addItemButton.Name = "addItemButton"; + this.addItemButton.Size = new System.Drawing.Size(187, 127); + this.addItemButton.TabIndex = 4; + this.addItemButton.Text = "Add Item(s)"; + this.addItemButton.UseSelectable = true; + // + // metroLabel2 + // + 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(3, 23); + this.metroLabel2.Name = "metroLabel2"; + 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; + // + // 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:"; + // + // 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; + // + // 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: "; + // + // 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 + // + this.employeeListBox.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.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 = 38; + this.employeeListBox.Items.AddRange(new object[] { + "Item1", + "Item1", + "Item1", + "Item1", + "Item1", + "Item1", + "Item2", + "Item2", + "Item2", + "Item2", + "Item2", + "Item2", + "Item3", + "Item3", + "Item3", + "Item3", + "Item3", + "Item3"}); + 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(696, 688); + this.employeeListBox.TabIndex = 16; + // + // groupBox6 + // + this.groupBox6.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); + this.groupBox6.BackColor = System.Drawing.Color.Transparent; + this.groupBox6.Controls.Add(this.lastNameTextBox); + this.groupBox6.Controls.Add(this.label11); + this.groupBox6.Controls.Add(this.firstNameTextBox); + this.groupBox6.Controls.Add(this.label10); + this.groupBox6.Controls.Add(this.pinNumber); + this.groupBox6.Controls.Add(this.usernameTextBox); + this.groupBox6.Controls.Add(this.pin); + this.groupBox6.Controls.Add(this.label9); + 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(741, 287); + this.groupBox6.Name = "groupBox6"; + this.groupBox6.Padding = new System.Windows.Forms.Padding(8); + this.groupBox6.Size = new System.Drawing.Size(595, 418); + this.groupBox6.TabIndex = 19; + this.groupBox6.TabStop = false; + this.groupBox6.Text = "Options"; + // + // label7 + // + this.label7.Location = new System.Drawing.Point(6, 237); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(154, 36); + this.label7.TabIndex = 1; + this.label7.Text = "Roles:"; + // + // listBox2 + // + this.listBox2.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.listBox2.FormattingEnabled = true; + this.listBox2.ItemHeight = 28; + this.listBox2.Items.AddRange(new object[] { + "Admin", + "Chef", + "Host", + "Waiter"}); + 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(418, 116); + this.listBox2.TabIndex = 0; + // + // groupBox7 + // + this.groupBox7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.groupBox7.BackColor = System.Drawing.Color.Transparent; + 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(741, 63); + this.groupBox7.Name = "groupBox7"; + this.groupBox7.Padding = new System.Windows.Forms.Padding(8); + this.groupBox7.Size = new System.Drawing.Size(595, 218); + this.groupBox7.TabIndex = 18; + this.groupBox7.TabStop = false; + this.groupBox7.Text = "Edit Employees"; + // + // employeeRemoveButton + // + this.employeeRemoveButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); + this.employeeRemoveButton.FontSize = MetroFramework.MetroButtonSize.Tall; + this.employeeRemoveButton.FontWeight = MetroFramework.MetroButtonWeight.Regular; + this.employeeRemoveButton.Location = new System.Drawing.Point(297, 30); + this.employeeRemoveButton.Name = "employeeRemoveButton"; + this.employeeRemoveButton.Size = new System.Drawing.Size(287, 177); + this.employeeRemoveButton.TabIndex = 6; + this.employeeRemoveButton.Text = "Remove Employee"; + this.employeeRemoveButton.UseSelectable = true; + // + // employeeAddButton + // + this.employeeAddButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); + this.employeeAddButton.FontSize = MetroFramework.MetroButtonSize.Tall; + this.employeeAddButton.FontWeight = MetroFramework.MetroButtonWeight.Regular; + this.employeeAddButton.Location = new System.Drawing.Point(11, 30); + this.employeeAddButton.Name = "employeeAddButton"; + this.employeeAddButton.Size = new System.Drawing.Size(280, 177); + this.employeeAddButton.TabIndex = 4; + this.employeeAddButton.Text = "Add Employee"; + this.employeeAddButton.UseSelectable = true; + // + // metroLabel4 + // + 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(3, 23); + this.metroLabel4.Name = "metroLabel4"; + 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; + // + // 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:"; + // + // 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:"; + // + // 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:"; + // + // 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; + // + // AdminStationView + // + this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1414, 918); + this.Controls.Add(this.adminTabControl); + this.Name = "AdminStationView"; + 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.groupBox2.ResumeLayout(false); + this.groupBox3.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.itemPrice)).EndInit(); + this.groupBox4.ResumeLayout(false); + this.groupBox5.ResumeLayout(false); + this.groupBox6.ResumeLayout(false); + this.groupBox7.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.pinNumber)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private MetroFramework.Controls.MetroTabControl adminTabControl; + private MetroFramework.Controls.MetroTabPage menuTab; + 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; + private MetroFramework.Controls.MetroButton metroButton3; + private System.Windows.Forms.GroupBox groupBox1; + 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; + private System.Windows.Forms.ListBox categoryListBox; + private System.Windows.Forms.GroupBox groupBox3; + private MetroFramework.Controls.MetroButton removeItemButton; + private MetroFramework.Controls.MetroButton renameItemButton; + private MetroFramework.Controls.MetroButton addItemButton; + private MetroFramework.Controls.MetroLabel metroLabel2; + private System.Windows.Forms.ListBox printingListBox; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label4; + private MetroFramework.Controls.MetroTextBox itemDescriptionTextbox; + private System.Windows.Forms.Label label5; + private MetroFramework.Controls.MetroButton menuSaveButton; + private MetroFramework.Controls.MetroButton menuRevertButton; + private MetroFramework.Controls.MetroButton itemsSaveButton; + private MetroFramework.Controls.MetroButton itemsRevertButton; + private System.Windows.Forms.NumericUpDown itemPrice; + private MetroFramework.Controls.MetroButton stationSaveButton; + private MetroFramework.Controls.MetroButton stationRevertButton; + private System.Windows.Forms.ListBox stationListBox; + private System.Windows.Forms.GroupBox groupBox4; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.ListBox stationTypeListBox; + private System.Windows.Forms.GroupBox groupBox5; + private MetroFramework.Controls.MetroButton stationRemoveButton; + private MetroFramework.Controls.MetroButton stationRenameButton; + private MetroFramework.Controls.MetroButton stationAddButton; + private MetroFramework.Controls.MetroLabel metroLabel3; + private MetroFramework.Controls.MetroButton metroButton4; + private MetroFramework.Controls.MetroButton metroButton5; + private System.Windows.Forms.ListBox employeeListBox; + private System.Windows.Forms.GroupBox groupBox6; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.ListBox listBox2; + private System.Windows.Forms.GroupBox groupBox7; + private MetroFramework.Controls.MetroButton employeeRemoveButton; + private MetroFramework.Controls.MetroButton employeeAddButton; + private MetroFramework.Controls.MetroLabel metroLabel4; + private MetroFramework.Controls.MetroTextBox lastNameTextBox; + private System.Windows.Forms.Label label11; + private MetroFramework.Controls.MetroTextBox firstNameTextBox; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.NumericUpDown pinNumber; + 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; + } +} \ No newline at end of file diff --git a/Enigma/StationsGUI/AdminStationView.cs b/Enigma/StationsGUI/AdminStationView.cs new file mode 100644 index 0000000..8ad79ff --- /dev/null +++ b/Enigma/StationsGUI/AdminStationView.cs @@ -0,0 +1,29 @@ +using EnigmaX.Classes; +using MetroFramework.Forms; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Enigma.StationsGUI +{ + public partial class AdminStationView : MetroForm + { + Employee loggedIn; + public AdminStationView(Employee loggedIn) + { + InitializeComponent(); + this.loggedIn = loggedIn; + } + + private void AdminStationView_Load(object sender, EventArgs e) + { + + } + } +} diff --git a/Enigma/StationsGUI/AdminStationView.resx b/Enigma/StationsGUI/AdminStationView.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/Enigma/StationsGUI/AdminStationView.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/EnigmaX/GUI/PinScreen.Designer.cs b/EnigmaX/GUI/PinScreen.Designer.cs index c2f1eaf..17e67ff 100644 --- a/EnigmaX/GUI/PinScreen.Designer.cs +++ b/EnigmaX/GUI/PinScreen.Designer.cs @@ -28,6 +28,7 @@ protected override void Dispose(bool disposing) /// private void InitializeComponent() { + this.components = new System.ComponentModel.Container(); this.button1 = new MetroFramework.Controls.MetroButton(); this.pinPanel = new System.Windows.Forms.Panel(); this.pin = new System.Windows.Forms.Label(); @@ -42,13 +43,16 @@ private void InitializeComponent() this.button4 = new MetroFramework.Controls.MetroButton(); this.button3 = new MetroFramework.Controls.MetroButton(); this.button2 = new MetroFramework.Controls.MetroButton(); + this.metroStyleManager1 = new MetroFramework.Components.MetroStyleManager(this.components); this.pinPanel.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.metroStyleManager1)).BeginInit(); this.SuspendLayout(); // // button1 // this.button1.DisplayFocus = true; this.button1.FontSize = MetroFramework.MetroButtonSize.Tall; + this.button1.FontWeight = MetroFramework.MetroButtonWeight.Regular; this.button1.ForeColor = System.Drawing.Color.White; this.button1.Location = new System.Drawing.Point(13, 130); this.button1.Name = "button1"; @@ -89,7 +93,7 @@ private void InitializeComponent() this.pin.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.pin.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.pin.Font = new System.Drawing.Font("Arial Unicode MS", 16F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.pin.Font = new System.Drawing.Font("Segoe UI Light", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.pin.ForeColor = System.Drawing.Color.White; this.pin.Location = new System.Drawing.Point(13, 10); this.pin.Name = "pin"; @@ -102,6 +106,7 @@ private void InitializeComponent() // this.buttonEnter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.buttonEnter.FontSize = MetroFramework.MetroButtonSize.Tall; + this.buttonEnter.FontWeight = MetroFramework.MetroButtonWeight.Regular; this.buttonEnter.ForeColor = System.Drawing.Color.White; this.buttonEnter.Location = new System.Drawing.Point(279, 525); this.buttonEnter.Name = "buttonEnter"; @@ -117,6 +122,7 @@ private void InitializeComponent() // buttonClear // this.buttonClear.FontSize = MetroFramework.MetroButtonSize.Tall; + this.buttonClear.FontWeight = MetroFramework.MetroButtonWeight.Regular; this.buttonClear.ForeColor = System.Drawing.Color.White; this.buttonClear.Location = new System.Drawing.Point(13, 526); this.buttonClear.Name = "buttonClear"; @@ -134,6 +140,7 @@ private void InitializeComponent() this.button0.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.button0.FontSize = MetroFramework.MetroButtonSize.Tall; + this.button0.FontWeight = MetroFramework.MetroButtonWeight.Regular; this.button0.ForeColor = System.Drawing.Color.White; this.button0.Location = new System.Drawing.Point(145, 525); this.button0.Name = "button0"; @@ -150,6 +157,7 @@ private void InitializeComponent() // this.button9.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.button9.FontSize = MetroFramework.MetroButtonSize.Tall; + this.button9.FontWeight = MetroFramework.MetroButtonWeight.Regular; this.button9.ForeColor = System.Drawing.Color.White; this.button9.Location = new System.Drawing.Point(279, 394); this.button9.Name = "button9"; @@ -167,6 +175,7 @@ private void InitializeComponent() this.button8.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.button8.FontSize = MetroFramework.MetroButtonSize.Tall; + this.button8.FontWeight = MetroFramework.MetroButtonWeight.Regular; this.button8.ForeColor = System.Drawing.Color.White; this.button8.Location = new System.Drawing.Point(145, 394); this.button8.Name = "button8"; @@ -182,6 +191,7 @@ private void InitializeComponent() // button7 // this.button7.FontSize = MetroFramework.MetroButtonSize.Tall; + this.button7.FontWeight = MetroFramework.MetroButtonWeight.Regular; this.button7.ForeColor = System.Drawing.Color.White; this.button7.Location = new System.Drawing.Point(13, 394); this.button7.Name = "button7"; @@ -198,6 +208,7 @@ private void InitializeComponent() // this.button6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.button6.FontSize = MetroFramework.MetroButtonSize.Tall; + this.button6.FontWeight = MetroFramework.MetroButtonWeight.Regular; this.button6.ForeColor = System.Drawing.Color.White; this.button6.Location = new System.Drawing.Point(279, 262); this.button6.Name = "button6"; @@ -215,6 +226,7 @@ private void InitializeComponent() this.button5.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.button5.FontSize = MetroFramework.MetroButtonSize.Tall; + this.button5.FontWeight = MetroFramework.MetroButtonWeight.Regular; this.button5.ForeColor = System.Drawing.Color.White; this.button5.Location = new System.Drawing.Point(145, 262); this.button5.Name = "button5"; @@ -230,6 +242,7 @@ private void InitializeComponent() // button4 // this.button4.FontSize = MetroFramework.MetroButtonSize.Tall; + this.button4.FontWeight = MetroFramework.MetroButtonWeight.Regular; this.button4.ForeColor = System.Drawing.Color.White; this.button4.Location = new System.Drawing.Point(13, 262); this.button4.Name = "button4"; @@ -246,6 +259,7 @@ private void InitializeComponent() // this.button3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.button3.FontSize = MetroFramework.MetroButtonSize.Tall; + this.button3.FontWeight = MetroFramework.MetroButtonWeight.Regular; this.button3.ForeColor = System.Drawing.Color.White; this.button3.Location = new System.Drawing.Point(279, 130); this.button3.Name = "button3"; @@ -263,6 +277,7 @@ private void InitializeComponent() this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.button2.FontSize = MetroFramework.MetroButtonSize.Tall; + this.button2.FontWeight = MetroFramework.MetroButtonWeight.Regular; this.button2.ForeColor = System.Drawing.Color.White; this.button2.Location = new System.Drawing.Point(145, 130); this.button2.Name = "button2"; @@ -275,6 +290,11 @@ private void InitializeComponent() this.button2.UseSelectable = true; this.button2.Click += new System.EventHandler(this.button1_Click); // + // metroStyleManager1 + // + this.metroStyleManager1.Owner = this; + this.metroStyleManager1.Style = MetroFramework.MetroColorStyle.White; + // // PinScreen // this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); @@ -292,6 +312,7 @@ private void InitializeComponent() this.Load += new System.EventHandler(this.PinInput_Load); this.Resize += new System.EventHandler(this.PinScreen_Resize); this.pinPanel.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.metroStyleManager1)).EndInit(); this.ResumeLayout(false); } @@ -312,5 +333,6 @@ private void InitializeComponent() private MetroFramework.Controls.MetroButton buttonClear; private MetroFramework.Controls.MetroButton buttonEnter; private System.Windows.Forms.Label pin; + private MetroFramework.Components.MetroStyleManager metroStyleManager1; } } \ No newline at end of file diff --git a/EnigmaX/GUI/PinScreen.resx b/EnigmaX/GUI/PinScreen.resx index 1af7de1..13d6613 100644 --- a/EnigmaX/GUI/PinScreen.resx +++ b/EnigmaX/GUI/PinScreen.resx @@ -117,4 +117,7 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 17, 17 + \ No newline at end of file From 228bf115aea41edd50c7242f5084ca757e7cad35 Mon Sep 17 00:00:00 2001 From: Evan Langlais Date: Mon, 27 Mar 2017 23:48:46 -0400 Subject: [PATCH 2/7] Added menu and menu item classes, semi-defined their properties and accessors. --- EnigmaX/Classes/Menu.cs | 16 ++++++++++++++ EnigmaX/Classes/MenuItem.cs | 42 +++++++++++++++++++++++++++++++++++++ EnigmaX/EnigmaX.csproj | 2 ++ 3 files changed, 60 insertions(+) create mode 100644 EnigmaX/Classes/Menu.cs create mode 100644 EnigmaX/Classes/MenuItem.cs diff --git a/EnigmaX/Classes/Menu.cs b/EnigmaX/Classes/Menu.cs new file mode 100644 index 0000000..e66d787 --- /dev/null +++ b/EnigmaX/Classes/Menu.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace EnigmaX.Classes +{ + public class Menu + { + + private string _title; + private List _items; + + } +} diff --git a/EnigmaX/Classes/MenuItem.cs b/EnigmaX/Classes/MenuItem.cs new file mode 100644 index 0000000..bd3da2e --- /dev/null +++ b/EnigmaX/Classes/MenuItem.cs @@ -0,0 +1,42 @@ +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 68b33f5..5568679 100644 --- a/EnigmaX/EnigmaX.csproj +++ b/EnigmaX/EnigmaX.csproj @@ -62,6 +62,8 @@ + + From ce990c938192d2965a81254fc0d4d457e98b9271 Mon Sep 17 00:00:00 2001 From: Evan Langlais Date: Tue, 28 Mar 2017 12:54:13 -0400 Subject: [PATCH 3/7] Updated DB functions and created accessors for menu --- Enigma/Popups/resAdd.cs | 12 +++---- Enigma/Popups/waitListAdd.cs | 6 ++-- Enigma/StationsGUI/HostStationView.cs | 12 +++---- EnigmaX/Classes/DBConnect.cs | 51 ++++++++++----------------- EnigmaX/Classes/Menu.cs | 38 +++++++++++++++++++- 5 files changed, 70 insertions(+), 49 deletions(-) diff --git a/Enigma/Popups/resAdd.cs b/Enigma/Popups/resAdd.cs index e98b467..a1cfd25 100644 --- a/Enigma/Popups/resAdd.cs +++ b/Enigma/Popups/resAdd.cs @@ -52,9 +52,9 @@ private void addRes_Click(object sender, EventArgs e) //update the initialWaitTime in the sql table MySqlCommand cmd = new MySqlCommand("UPDATE Seating SET status = @status WHERE tableNumber = @tableNumber and Seats = @Seats", db.getConnection()); //parametrize the variables - cmd.Parameters.Add("@status", hsv.tables[i].getStatus()); - cmd.Parameters.Add("@tableNumber", hsv.tables[i].getTableNumber()); - cmd.Parameters.Add("@Seats", hsv.tables[i].getTableCapacity()); + cmd.Parameters.AddWithValue("@status", hsv.tables[i].getStatus()); + cmd.Parameters.AddWithValue("@tableNumber", hsv.tables[i].getTableNumber()); + cmd.Parameters.AddWithValue("@Seats", hsv.tables[i].getTableCapacity()); cmd.ExecuteNonQuery(); //execute the update db.getConnection().Close(); @@ -70,9 +70,9 @@ private void addRes_Click(object sender, EventArgs e) //update the initialWaitTime in the sql table MySqlCommand cmd = new MySqlCommand("UPDATE Seating SET status = @status WHERE tableNumber = @tableNumber and Seats = @Seats", db.getConnection()); //parametrize the variables - cmd.Parameters.Add("@status", hsv.tables[i].getStatus()); - cmd.Parameters.Add("@tableNumber", hsv.tables[i].getTableNumber()); - cmd.Parameters.Add("@Seats", hsv.tables[i].getTableCapacity()); + cmd.Parameters.AddWithValue("@status", hsv.tables[i].getStatus()); + cmd.Parameters.AddWithValue("@tableNumber", hsv.tables[i].getTableNumber()); + cmd.Parameters.AddWithValue("@Seats", hsv.tables[i].getTableCapacity()); cmd.ExecuteNonQuery(); //execute the update db.getConnection().Close(); diff --git a/Enigma/Popups/waitListAdd.cs b/Enigma/Popups/waitListAdd.cs index 1924bd4..503320e 100644 --- a/Enigma/Popups/waitListAdd.cs +++ b/Enigma/Popups/waitListAdd.cs @@ -40,9 +40,9 @@ private void metroButton1_Click(object sender, EventArgs e) DBConnect db = new DBConnect(); db.getConnection().Open(); MySqlCommand cmd = new MySqlCommand("INSERT INTO Waitlist (Name, Party, initialWaitTime) VALUES (@Name, @Party, @initialWaitTime)", db.getConnection()); - cmd.Parameters.Add("@Name", party.getName()); - cmd.Parameters.Add("@Party", party.getCount()); - cmd.Parameters.Add("@initialWaitTime", party.getWaitTime()); + cmd.Parameters.AddWithValue("@Name", party.getName()); + cmd.Parameters.AddWithValue("@Party", party.getCount()); + cmd.Parameters.AddWithValue("@initialWaitTime", party.getWaitTime()); cmd.ExecuteNonQuery(); db.getConnection().Close(); diff --git a/Enigma/StationsGUI/HostStationView.cs b/Enigma/StationsGUI/HostStationView.cs index aa4f2bb..e9d5c78 100644 --- a/Enigma/StationsGUI/HostStationView.cs +++ b/Enigma/StationsGUI/HostStationView.cs @@ -155,9 +155,9 @@ private void waitListRefresh_Tick(object sender, EventArgs e) //actions when the //update the initialWaitTime in the sql table MySqlCommand cmd = new MySqlCommand("UPDATE Waitlist SET initialWaitTime = @initialWaitTime WHERE Name = @Name and Party = @Party", db.getConnection()); //parametrize the variables - cmd.Parameters.Add("@initialWaitTime", waitList[i].getWaitTime()); - cmd.Parameters.Add("@Name", waitList[i].getName()); - cmd.Parameters.Add("@Party", waitList[i].getCount()); + cmd.Parameters.AddWithValue("@initialWaitTime", waitList[i].getWaitTime()); + cmd.Parameters.AddWithValue("@Name", waitList[i].getName()); + cmd.Parameters.AddWithValue("@Party", waitList[i].getCount()); cmd.ExecuteNonQuery(); //execute the update db.getConnection().Close(); //close the channel dataGridView1.Refresh(); //check if works @@ -200,8 +200,8 @@ private void dataGridView1_RowHeaderMouseDoubleClick(object sender, DataGridView db.getConnection().Open(); //remove the row from the sql table MySqlCommand cmd = new MySqlCommand("DELETE FROM Waitlist WHERE Name = @Name and Party = @Party", db.getConnection()); - cmd.Parameters.Add("@Name", name); - cmd.Parameters.Add("@Party", partySize); + cmd.Parameters.AddWithValue("@Name", name); + cmd.Parameters.AddWithValue("@Party", partySize); cmd.ExecuteNonQuery(); db.getConnection().Close(); } @@ -276,7 +276,7 @@ private void HostStationView_FormClosed(object sender, FormClosedEventArgs e) cmd = new MySqlCommand("UPDATE Seating SET status = @status ", db.getConnection()); //parametrize the variables - cmd.Parameters.Add("@status", 1); + cmd.Parameters.AddWithValue("@status", 1); cmd.ExecuteNonQuery(); db.getConnection().Close(); } diff --git a/EnigmaX/Classes/DBConnect.cs b/EnigmaX/Classes/DBConnect.cs index bcd174c..e1a2359 100644 --- a/EnigmaX/Classes/DBConnect.cs +++ b/EnigmaX/Classes/DBConnect.cs @@ -70,30 +70,36 @@ private bool CloseConnection() public void WriteCommand(string str) { + WriteCommand(new MySqlCommand(str)); + } - if (this.OpenConnection() == true) - { - //create command and assign the query and connection from the constructor - MySqlCommand cmd = new MySqlCommand(str, connection); + public void WriteCommand(MySqlCommand cmd) + { - //Execute command - cmd.ExecuteNonQuery(); + if (this.OpenConnection() == true) + { + //create command and assign the query and connection from the constructor - //close connection - this.CloseConnection(); - } + //Execute command + cmd.ExecuteNonQuery(); + //close connection + this.CloseConnection(); } - public List> ReadCommand(string str, params string[] collect) + } + + public List> ReadCommand(string str, params string[] collect) { + return ReadCommand(new MySqlCommand(str), collect); + } + + public List> ReadCommand(MySqlCommand cmd, params string[] collect) { List> total = new List>(); if (this.OpenConnection() == true) { - //Create Command - MySqlCommand cmd = new MySqlCommand(str, connection); //Create a data reader and Execute the command MySqlDataReader dataReader = cmd.ExecuteReader(); @@ -128,27 +134,6 @@ public MySqlConnection getConnection() { return connection; } - /*public string ReadSingleCommand(string str) { - - if (this.OpenConnection() == true) - { - //Create Mysql Command - MySqlCommand cmd = new MySqlCommand(str, connection); - - //ExecuteScalar will return one value - Count = int.Parse(cmd.ExecuteScalar() + ""); - - //close Connection - this.CloseConnection(); - - return Count; - } - else - { - return Count; - } - - }*/ } } diff --git a/EnigmaX/Classes/Menu.cs b/EnigmaX/Classes/Menu.cs index e66d787..3afd5df 100644 --- a/EnigmaX/Classes/Menu.cs +++ b/EnigmaX/Classes/Menu.cs @@ -8,9 +8,45 @@ namespace EnigmaX.Classes { public class Menu { - + private int _id; private string _title; private List _items; + public Menu(int id, string title, List items) { + _id = id; + _title = title; + _items = items; + } + + public string Title { + get { + return _title; + } + set { + _title = value; + } + } + + public List Items + { + get + { + return _items; + } + set + { + _items = value; + } + } + + public static Menu loadMenuFromDB(int id) { + + return new Menu(id, "", null); + } + + public void updateMenuInDB() { + + } + } } From cd9b2056f73d19d34b9d9b98f6fc9686b91b651b Mon Sep 17 00:00:00 2001 From: Evan Langlais Date: Tue, 28 Mar 2017 23:29:15 -0400 Subject: [PATCH 4/7] Fixed DB Class and added more accessors --- .../StationsGUI/AdminStationView.Designer.cs | 1383 ++++++++--------- EnigmaX/Classes/DBConnect.cs | 7 +- EnigmaX/Classes/Menu.cs | 5 - 3 files changed, 667 insertions(+), 728 deletions(-) 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() { } From 1791d37b02cbf21747166695c2b80e248dcded55 Mon Sep 17 00:00:00 2001 From: Evan Langlais Date: Thu, 30 Mar 2017 11:38:05 -0400 Subject: [PATCH 5/7] Added skeleton methods --- .../StationsGUI/AdminStationView.Designer.cs | 457 ++++++++++-------- Enigma/StationsGUI/AdminStationView.cs | 24 + 2 files changed, 287 insertions(+), 194 deletions(-) diff --git a/Enigma/StationsGUI/AdminStationView.Designer.cs b/Enigma/StationsGUI/AdminStationView.Designer.cs index 679a287..9ac1046 100644 --- a/Enigma/StationsGUI/AdminStationView.Designer.cs +++ b/Enigma/StationsGUI/AdminStationView.Designer.cs @@ -30,6 +30,8 @@ private void InitializeComponent() { this.adminTabControl = new MetroFramework.Controls.MetroTabControl(); this.menuTab = new MetroFramework.Controls.MetroTabPage(); + this.menuListBox = new System.Windows.Forms.ListBox(); + this.menuSelectionBox = new MetroFramework.Controls.MetroComboBox(); this.menuSaveButton = new MetroFramework.Controls.MetroButton(); this.menuRevertButton = new MetroFramework.Controls.MetroButton(); this.groupBox1 = new System.Windows.Forms.GroupBox(); @@ -89,8 +91,6 @@ private void InitializeComponent() this.stationRenameButton = new MetroFramework.Controls.MetroButton(); this.stationAddButton = new MetroFramework.Controls.MetroButton(); this.metroLabel3 = new MetroFramework.Controls.MetroLabel(); - this.menuSelectionBox = new MetroFramework.Controls.MetroComboBox(); - this.menuListBox = new System.Windows.Forms.ListBox(); this.adminTabControl.SuspendLayout(); this.menuTab.SuspendLayout(); this.groupBox1.SuspendLayout(); @@ -117,10 +117,11 @@ 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(23, 63); + this.adminTabControl.Location = new System.Drawing.Point(28, 76); + this.adminTabControl.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.adminTabControl.Name = "adminTabControl"; this.adminTabControl.SelectedIndex = 0; - this.adminTabControl.Size = new System.Drawing.Size(1368, 832); + this.adminTabControl.Size = new System.Drawing.Size(1672, 998); this.adminTabControl.TabIndex = 0; this.adminTabControl.UseSelectable = true; // @@ -135,24 +136,68 @@ private void InitializeComponent() this.menuTab.Controls.Add(this.metroLabel1); this.menuTab.HorizontalScrollbarBarColor = true; this.menuTab.HorizontalScrollbarHighlightOnWheel = false; - this.menuTab.HorizontalScrollbarSize = 10; + this.menuTab.HorizontalScrollbarSize = 12; 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(1360, 790); + this.menuTab.Size = new System.Drawing.Size(1664, 956); this.menuTab.TabIndex = 0; this.menuTab.Text = "Edit Menus"; this.menuTab.VerticalScrollbarBarColor = true; this.menuTab.VerticalScrollbarHighlightOnWheel = false; - this.menuTab.VerticalScrollbarSize = 10; + this.menuTab.VerticalScrollbarSize = 12; + // + // menuListBox + // + 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 = 45; + 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(10, 83); + this.menuListBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.menuListBox.Name = "menuListBox"; + this.menuListBox.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended; + this.menuListBox.Size = new System.Drawing.Size(850, 814); + this.menuListBox.TabIndex = 11; + // + // menuSelectionBox + // + 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(155, 43); + this.menuSelectionBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.menuSelectionBox.Name = "menuSelectionBox"; + this.menuSelectionBox.Size = new System.Drawing.Size(388, 29); + this.menuSelectionBox.TabIndex = 10; + this.menuSelectionBox.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.Location = new System.Drawing.Point(1269, 853); + this.menuSaveButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.menuSaveButton.Name = "menuSaveButton"; - this.menuSaveButton.Size = new System.Drawing.Size(298, 45); + this.menuSaveButton.Size = new System.Drawing.Size(364, 54); this.menuSaveButton.TabIndex = 9; this.menuSaveButton.Text = "Save"; this.menuSaveButton.UseSelectable = true; @@ -162,9 +207,10 @@ 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(741, 712); + this.menuRevertButton.Location = new System.Drawing.Point(906, 854); + this.menuRevertButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.menuRevertButton.Name = "menuRevertButton"; - this.menuRevertButton.Size = new System.Drawing.Size(291, 45); + this.menuRevertButton.Size = new System.Drawing.Size(356, 54); this.menuRevertButton.TabIndex = 8; this.menuRevertButton.Text = "Revert"; this.menuRevertButton.UseSelectable = true; @@ -177,19 +223,21 @@ 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(741, 287); + this.groupBox1.Location = new System.Drawing.Point(906, 344); + this.groupBox1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.groupBox1.Name = "groupBox1"; - this.groupBox1.Padding = new System.Windows.Forms.Padding(8); - this.groupBox1.Size = new System.Drawing.Size(595, 418); + this.groupBox1.Padding = new System.Windows.Forms.Padding(10, 10, 10, 10); + this.groupBox1.Size = new System.Drawing.Size(727, 502); this.groupBox1.TabIndex = 7; this.groupBox1.TabStop = false; this.groupBox1.Text = "Options"; // // label1 // - this.label1.Location = new System.Drawing.Point(6, 35); + this.label1.Location = new System.Drawing.Point(7, 42); + this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(171, 36); + this.label1.Size = new System.Drawing.Size(209, 43); this.label1.TabIndex = 1; this.label1.Text = "Display Menu On:"; // @@ -199,16 +247,17 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.displayedOnDevices.FormattingEnabled = true; - this.displayedOnDevices.ItemHeight = 28; + this.displayedOnDevices.ItemHeight = 31; this.displayedOnDevices.Items.AddRange(new object[] { "Computer1", "Computer2", "Computer3", "Computer4"}); - this.displayedOnDevices.Location = new System.Drawing.Point(183, 35); + this.displayedOnDevices.Location = new System.Drawing.Point(224, 42); + this.displayedOnDevices.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.displayedOnDevices.Name = "displayedOnDevices"; this.displayedOnDevices.SelectionMode = System.Windows.Forms.SelectionMode.MultiSimple; - this.displayedOnDevices.Size = new System.Drawing.Size(401, 368); + this.displayedOnDevices.Size = new System.Drawing.Size(489, 438); this.displayedOnDevices.Sorted = true; this.displayedOnDevices.TabIndex = 0; // @@ -220,10 +269,11 @@ 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(741, 63); + this.menuGroup1.Location = new System.Drawing.Point(906, 76); + this.menuGroup1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.menuGroup1.Name = "menuGroup1"; - this.menuGroup1.Padding = new System.Windows.Forms.Padding(8); - this.menuGroup1.Size = new System.Drawing.Size(595, 218); + this.menuGroup1.Padding = new System.Windows.Forms.Padding(10, 10, 10, 10); + this.menuGroup1.Size = new System.Drawing.Size(727, 262); this.menuGroup1.TabIndex = 6; this.menuGroup1.TabStop = false; this.menuGroup1.Text = "Edit Menus"; @@ -234,9 +284,10 @@ 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(397, 30); + this.metroButton3.Location = new System.Drawing.Point(485, 36); + this.metroButton3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.metroButton3.Name = "metroButton3"; - this.metroButton3.Size = new System.Drawing.Size(187, 177); + this.metroButton3.Size = new System.Drawing.Size(229, 212); this.metroButton3.TabIndex = 6; this.metroButton3.Text = "Remove Menu"; this.metroButton3.UseSelectable = true; @@ -247,9 +298,10 @@ 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(204, 30); + this.metroButton2.Location = new System.Drawing.Point(249, 36); + this.metroButton2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.metroButton2.Name = "metroButton2"; - this.metroButton2.Size = new System.Drawing.Size(187, 177); + this.metroButton2.Size = new System.Drawing.Size(229, 212); this.metroButton2.TabIndex = 5; this.metroButton2.Text = "Rename Menu"; this.metroButton2.UseSelectable = true; @@ -260,9 +312,10 @@ 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(11, 30); + this.metroButton1.Location = new System.Drawing.Point(13, 36); + this.metroButton1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.metroButton1.Name = "metroButton1"; - this.metroButton1.Size = new System.Drawing.Size(187, 177); + this.metroButton1.Size = new System.Drawing.Size(229, 212); this.metroButton1.TabIndex = 4; this.metroButton1.Text = "Add Menu"; this.metroButton1.UseSelectable = true; @@ -272,9 +325,10 @@ 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(3, 23); + this.metroLabel1.Location = new System.Drawing.Point(4, 28); + this.metroLabel1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.metroLabel1.Name = "metroLabel1"; - this.metroLabel1.Size = new System.Drawing.Size(700, 37); + this.metroLabel1.Size = new System.Drawing.Size(856, 44); this.metroLabel1.TabIndex = 3; this.metroLabel1.Text = "Select Menu"; this.metroLabel1.TextAlign = System.Drawing.ContentAlignment.BottomLeft; @@ -289,24 +343,26 @@ private void InitializeComponent() this.itemsTab.Controls.Add(this.metroLabel2); this.itemsTab.HorizontalScrollbarBarColor = true; this.itemsTab.HorizontalScrollbarHighlightOnWheel = false; - this.itemsTab.HorizontalScrollbarSize = 10; + this.itemsTab.HorizontalScrollbarSize = 12; 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(1360, 790); + this.itemsTab.Size = new System.Drawing.Size(1664, 956); this.itemsTab.TabIndex = 1; this.itemsTab.Text = "Edit Items"; this.itemsTab.VerticalScrollbarBarColor = true; this.itemsTab.VerticalScrollbarHighlightOnWheel = false; - this.itemsTab.VerticalScrollbarSize = 10; + this.itemsTab.VerticalScrollbarSize = 12; // // 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.Location = new System.Drawing.Point(1269, 854); + this.itemsSaveButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.itemsSaveButton.Name = "itemsSaveButton"; - this.itemsSaveButton.Size = new System.Drawing.Size(298, 45); + this.itemsSaveButton.Size = new System.Drawing.Size(364, 54); this.itemsSaveButton.TabIndex = 11; this.itemsSaveButton.Text = "Save"; this.itemsSaveButton.UseSelectable = true; @@ -318,7 +374,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 = 38; + this.itemListBox.ItemHeight = 45; this.itemListBox.Items.AddRange(new object[] { "Item1", "Item1", @@ -338,10 +394,11 @@ private void InitializeComponent() "Item3", "Item3", "Item3"}); - this.itemListBox.Location = new System.Drawing.Point(7, 69); + this.itemListBox.Location = new System.Drawing.Point(9, 83); + this.itemListBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.itemListBox.Name = "itemListBox"; this.itemListBox.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended; - this.itemListBox.Size = new System.Drawing.Size(696, 688); + this.itemListBox.Size = new System.Drawing.Size(850, 814); this.itemListBox.TabIndex = 8; // // itemsRevertButton @@ -349,9 +406,10 @@ 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(741, 713); + this.itemsRevertButton.Location = new System.Drawing.Point(906, 856); + this.itemsRevertButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.itemsRevertButton.Name = "itemsRevertButton"; - this.itemsRevertButton.Size = new System.Drawing.Size(291, 45); + this.itemsRevertButton.Size = new System.Drawing.Size(356, 54); this.itemsRevertButton.TabIndex = 10; this.itemsRevertButton.Text = "Revert"; this.itemsRevertButton.UseSelectable = true; @@ -370,10 +428,11 @@ 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(741, 237); + this.groupBox2.Location = new System.Drawing.Point(906, 284); + this.groupBox2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.groupBox2.Name = "groupBox2"; - this.groupBox2.Padding = new System.Windows.Forms.Padding(8); - this.groupBox2.Size = new System.Drawing.Size(595, 470); + this.groupBox2.Padding = new System.Windows.Forms.Padding(10, 10, 10, 10); + this.groupBox2.Size = new System.Drawing.Size(727, 564); this.groupBox2.TabIndex = 12; this.groupBox2.TabStop = false; this.groupBox2.Text = "Options"; @@ -383,9 +442,10 @@ 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(166, 187); + this.itemPrice.Location = new System.Drawing.Point(203, 224); + this.itemPrice.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.itemPrice.Name = "itemPrice"; - this.itemPrice.Size = new System.Drawing.Size(125, 34); + this.itemPrice.Size = new System.Drawing.Size(153, 39); this.itemPrice.TabIndex = 9; // // itemDescriptionTextbox @@ -396,9 +456,10 @@ private void InitializeComponent() // // this.itemDescriptionTextbox.CustomButton.Image = null; - this.itemDescriptionTextbox.CustomButton.Location = new System.Drawing.Point(278, 1); + 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.Name = ""; - this.itemDescriptionTextbox.CustomButton.Size = new System.Drawing.Size(139, 139); + this.itemDescriptionTextbox.CustomButton.Size = new System.Drawing.Size(204, 200); this.itemDescriptionTextbox.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; this.itemDescriptionTextbox.CustomButton.TabIndex = 1; this.itemDescriptionTextbox.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; @@ -407,7 +468,8 @@ private void InitializeComponent() this.itemDescriptionTextbox.FontSize = MetroFramework.MetroTextBoxSize.Medium; this.itemDescriptionTextbox.Lines = new string[] { "metroTextBox1"}; - this.itemDescriptionTextbox.Location = new System.Drawing.Point(166, 35); + this.itemDescriptionTextbox.Location = new System.Drawing.Point(203, 42); + this.itemDescriptionTextbox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.itemDescriptionTextbox.MaxLength = 32767; this.itemDescriptionTextbox.Multiline = true; this.itemDescriptionTextbox.Name = "itemDescriptionTextbox"; @@ -417,7 +479,7 @@ private void InitializeComponent() this.itemDescriptionTextbox.SelectionLength = 0; this.itemDescriptionTextbox.SelectionStart = 0; this.itemDescriptionTextbox.ShortcutsEnabled = true; - this.itemDescriptionTextbox.Size = new System.Drawing.Size(418, 141); + this.itemDescriptionTextbox.Size = new System.Drawing.Size(511, 169); this.itemDescriptionTextbox.TabIndex = 6; this.itemDescriptionTextbox.Text = "metroTextBox1"; this.itemDescriptionTextbox.UseSelectable = true; @@ -426,17 +488,19 @@ private void InitializeComponent() // // label5 // - this.label5.Location = new System.Drawing.Point(6, 183); + this.label5.Location = new System.Drawing.Point(7, 220); + this.label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(154, 36); + this.label5.Size = new System.Drawing.Size(188, 43); this.label5.TabIndex = 5; this.label5.Text = "Price:"; // // label4 // - this.label4.Location = new System.Drawing.Point(6, 35); + this.label4.Location = new System.Drawing.Point(7, 42); + this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(154, 36); + this.label4.Size = new System.Drawing.Size(188, 43); this.label4.TabIndex = 4; this.label4.Text = "Description: "; // @@ -445,29 +509,32 @@ 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 = 28; + this.printingListBox.ItemHeight = 31; this.printingListBox.Items.AddRange(new object[] { "Cold", "Hot"}); - this.printingListBox.Location = new System.Drawing.Point(166, 399); + this.printingListBox.Location = new System.Drawing.Point(203, 479); + this.printingListBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.printingListBox.Name = "printingListBox"; - this.printingListBox.Size = new System.Drawing.Size(418, 60); + this.printingListBox.Size = new System.Drawing.Size(510, 66); this.printingListBox.Sorted = true; this.printingListBox.TabIndex = 3; // // label3 // - this.label3.Location = new System.Drawing.Point(6, 399); + this.label3.Location = new System.Drawing.Point(7, 479); + this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(149, 36); + this.label3.Size = new System.Drawing.Size(182, 43); this.label3.TabIndex = 2; this.label3.Text = "Printing Station:"; // // label2 // - this.label2.Location = new System.Drawing.Point(6, 249); + this.label2.Location = new System.Drawing.Point(7, 299); + this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(154, 36); + this.label2.Size = new System.Drawing.Size(188, 43); this.label2.TabIndex = 1; this.label2.Text = "Category:"; // @@ -476,17 +543,18 @@ 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 = 28; + this.categoryListBox.ItemHeight = 31; this.categoryListBox.Items.AddRange(new object[] { "Appitizer", "Dessert", "Drink", "Entre", "Other"}); - this.categoryListBox.Location = new System.Drawing.Point(166, 236); + this.categoryListBox.Location = new System.Drawing.Point(203, 283); + this.categoryListBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.categoryListBox.Name = "categoryListBox"; this.categoryListBox.SelectionMode = System.Windows.Forms.SelectionMode.MultiSimple; - this.categoryListBox.Size = new System.Drawing.Size(418, 144); + this.categoryListBox.Size = new System.Drawing.Size(510, 159); this.categoryListBox.Sorted = true; this.categoryListBox.TabIndex = 0; // @@ -498,10 +566,11 @@ 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(741, 63); + this.groupBox3.Location = new System.Drawing.Point(906, 76); + this.groupBox3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.groupBox3.Name = "groupBox3"; - this.groupBox3.Padding = new System.Windows.Forms.Padding(8); - this.groupBox3.Size = new System.Drawing.Size(595, 168); + this.groupBox3.Padding = new System.Windows.Forms.Padding(10, 10, 10, 10); + this.groupBox3.Size = new System.Drawing.Size(727, 202); this.groupBox3.TabIndex = 11; this.groupBox3.TabStop = false; this.groupBox3.Text = "Edit Items"; @@ -512,9 +581,10 @@ 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(397, 30); + this.removeItemButton.Location = new System.Drawing.Point(485, 36); + this.removeItemButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.removeItemButton.Name = "removeItemButton"; - this.removeItemButton.Size = new System.Drawing.Size(187, 127); + this.removeItemButton.Size = new System.Drawing.Size(229, 152); this.removeItemButton.TabIndex = 6; this.removeItemButton.Text = "Remove Item(s)"; this.removeItemButton.UseSelectable = true; @@ -525,9 +595,10 @@ 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(204, 30); + this.renameItemButton.Location = new System.Drawing.Point(249, 36); + this.renameItemButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.renameItemButton.Name = "renameItemButton"; - this.renameItemButton.Size = new System.Drawing.Size(187, 127); + this.renameItemButton.Size = new System.Drawing.Size(229, 152); this.renameItemButton.TabIndex = 5; this.renameItemButton.Text = "Rename Item"; this.renameItemButton.UseSelectable = true; @@ -538,9 +609,10 @@ 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(11, 30); + this.addItemButton.Location = new System.Drawing.Point(13, 36); + this.addItemButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.addItemButton.Name = "addItemButton"; - this.addItemButton.Size = new System.Drawing.Size(187, 127); + this.addItemButton.Size = new System.Drawing.Size(229, 152); this.addItemButton.TabIndex = 4; this.addItemButton.Text = "Add Item(s)"; this.addItemButton.UseSelectable = true; @@ -550,9 +622,10 @@ 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(3, 23); + this.metroLabel2.Location = new System.Drawing.Point(4, 28); + this.metroLabel2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.metroLabel2.Name = "metroLabel2"; - this.metroLabel2.Size = new System.Drawing.Size(700, 37); + this.metroLabel2.Size = new System.Drawing.Size(856, 44); this.metroLabel2.TabIndex = 10; this.metroLabel2.Text = "Select Items"; this.metroLabel2.TextAlign = System.Drawing.ContentAlignment.BottomLeft; @@ -567,24 +640,26 @@ private void InitializeComponent() this.employeeTab.Controls.Add(this.metroLabel4); this.employeeTab.HorizontalScrollbarBarColor = true; this.employeeTab.HorizontalScrollbarHighlightOnWheel = false; - this.employeeTab.HorizontalScrollbarSize = 10; + this.employeeTab.HorizontalScrollbarSize = 12; 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(1360, 790); + this.employeeTab.Size = new System.Drawing.Size(1664, 956); this.employeeTab.TabIndex = 2; this.employeeTab.Text = "Edit Employees"; this.employeeTab.VerticalScrollbarBarColor = true; this.employeeTab.VerticalScrollbarHighlightOnWheel = false; - this.employeeTab.VerticalScrollbarSize = 10; + this.employeeTab.VerticalScrollbarSize = 12; // // 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.Location = new System.Drawing.Point(1269, 853); + this.metroButton4.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.metroButton4.Name = "metroButton4"; - this.metroButton4.Size = new System.Drawing.Size(298, 45); + this.metroButton4.Size = new System.Drawing.Size(364, 54); this.metroButton4.TabIndex = 21; this.metroButton4.Text = "Save"; this.metroButton4.UseSelectable = true; @@ -594,9 +669,10 @@ 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(741, 712); + this.metroButton5.Location = new System.Drawing.Point(906, 854); + this.metroButton5.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.metroButton5.Name = "metroButton5"; - this.metroButton5.Size = new System.Drawing.Size(291, 45); + this.metroButton5.Size = new System.Drawing.Size(356, 54); this.metroButton5.TabIndex = 20; this.metroButton5.Text = "Revert"; this.metroButton5.UseSelectable = true; @@ -608,7 +684,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 = 38; + this.employeeListBox.ItemHeight = 45; this.employeeListBox.Items.AddRange(new object[] { "Item1", "Item1", @@ -628,10 +704,11 @@ private void InitializeComponent() "Item3", "Item3", "Item3"}); - this.employeeListBox.Location = new System.Drawing.Point(7, 69); + this.employeeListBox.Location = new System.Drawing.Point(9, 83); + this.employeeListBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.employeeListBox.Name = "employeeListBox"; this.employeeListBox.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended; - this.employeeListBox.Size = new System.Drawing.Size(696, 688); + this.employeeListBox.Size = new System.Drawing.Size(850, 814); this.employeeListBox.TabIndex = 16; // // groupBox6 @@ -650,10 +727,11 @@ 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(741, 287); + this.groupBox6.Location = new System.Drawing.Point(906, 344); + this.groupBox6.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.groupBox6.Name = "groupBox6"; - this.groupBox6.Padding = new System.Windows.Forms.Padding(8); - this.groupBox6.Size = new System.Drawing.Size(595, 418); + this.groupBox6.Padding = new System.Windows.Forms.Padding(10, 10, 10, 10); + this.groupBox6.Size = new System.Drawing.Size(727, 502); this.groupBox6.TabIndex = 19; this.groupBox6.TabStop = false; this.groupBox6.Text = "Options"; @@ -666,9 +744,10 @@ private void InitializeComponent() // // this.lastNameTextBox.CustomButton.Image = null; - this.lastNameTextBox.CustomButton.Location = new System.Drawing.Point(384, 2); + 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.Name = ""; - this.lastNameTextBox.CustomButton.Size = new System.Drawing.Size(31, 31); + this.lastNameTextBox.CustomButton.Size = new System.Drawing.Size(50, 49); this.lastNameTextBox.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; this.lastNameTextBox.CustomButton.TabIndex = 1; this.lastNameTextBox.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; @@ -677,7 +756,8 @@ private void InitializeComponent() this.lastNameTextBox.FontSize = MetroFramework.MetroTextBoxSize.Medium; this.lastNameTextBox.Lines = new string[] { "metroTextBox2"}; - this.lastNameTextBox.Location = new System.Drawing.Point(166, 131); + this.lastNameTextBox.Location = new System.Drawing.Point(203, 157); + this.lastNameTextBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.lastNameTextBox.MaxLength = 32767; this.lastNameTextBox.Multiline = true; this.lastNameTextBox.Name = "lastNameTextBox"; @@ -687,7 +767,7 @@ private void InitializeComponent() this.lastNameTextBox.SelectionLength = 0; this.lastNameTextBox.SelectionStart = 0; this.lastNameTextBox.ShortcutsEnabled = true; - this.lastNameTextBox.Size = new System.Drawing.Size(418, 36); + this.lastNameTextBox.Size = new System.Drawing.Size(511, 43); this.lastNameTextBox.TabIndex = 17; this.lastNameTextBox.Text = "metroTextBox2"; this.lastNameTextBox.UseSelectable = true; @@ -696,9 +776,10 @@ private void InitializeComponent() // // label11 // - this.label11.Location = new System.Drawing.Point(6, 131); + this.label11.Location = new System.Drawing.Point(7, 157); + this.label11.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(154, 36); + this.label11.Size = new System.Drawing.Size(188, 43); this.label11.TabIndex = 16; this.label11.Text = "Last Name:"; // @@ -710,9 +791,10 @@ private void InitializeComponent() // // this.firstNameTextBox.CustomButton.Image = null; - this.firstNameTextBox.CustomButton.Location = new System.Drawing.Point(384, 2); + 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.Name = ""; - this.firstNameTextBox.CustomButton.Size = new System.Drawing.Size(31, 31); + this.firstNameTextBox.CustomButton.Size = new System.Drawing.Size(50, 49); this.firstNameTextBox.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; this.firstNameTextBox.CustomButton.TabIndex = 1; this.firstNameTextBox.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; @@ -721,7 +803,8 @@ private void InitializeComponent() this.firstNameTextBox.FontSize = MetroFramework.MetroTextBoxSize.Medium; this.firstNameTextBox.Lines = new string[] { "metroTextBox1"}; - this.firstNameTextBox.Location = new System.Drawing.Point(166, 83); + this.firstNameTextBox.Location = new System.Drawing.Point(203, 100); + this.firstNameTextBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.firstNameTextBox.MaxLength = 32767; this.firstNameTextBox.Multiline = true; this.firstNameTextBox.Name = "firstNameTextBox"; @@ -731,7 +814,7 @@ private void InitializeComponent() this.firstNameTextBox.SelectionLength = 0; this.firstNameTextBox.SelectionStart = 0; this.firstNameTextBox.ShortcutsEnabled = true; - this.firstNameTextBox.Size = new System.Drawing.Size(418, 36); + this.firstNameTextBox.Size = new System.Drawing.Size(511, 43); this.firstNameTextBox.TabIndex = 15; this.firstNameTextBox.Text = "metroTextBox1"; this.firstNameTextBox.UseSelectable = true; @@ -740,9 +823,10 @@ private void InitializeComponent() // // label10 // - this.label10.Location = new System.Drawing.Point(6, 83); + this.label10.Location = new System.Drawing.Point(7, 100); + this.label10.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(154, 36); + this.label10.Size = new System.Drawing.Size(188, 43); this.label10.TabIndex = 14; this.label10.Text = "First Name:"; // @@ -750,14 +834,15 @@ 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(166, 187); + this.pinNumber.Location = new System.Drawing.Point(203, 224); + this.pinNumber.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 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.Size = new System.Drawing.Size(153, 39); this.pinNumber.TabIndex = 13; // // usernameTextBox @@ -768,9 +853,10 @@ private void InitializeComponent() // // this.usernameTextBox.CustomButton.Image = null; - this.usernameTextBox.CustomButton.Location = new System.Drawing.Point(384, 2); + 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.Name = ""; - this.usernameTextBox.CustomButton.Size = new System.Drawing.Size(31, 31); + this.usernameTextBox.CustomButton.Size = new System.Drawing.Size(50, 49); this.usernameTextBox.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; this.usernameTextBox.CustomButton.TabIndex = 1; this.usernameTextBox.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; @@ -779,7 +865,8 @@ private void InitializeComponent() this.usernameTextBox.FontSize = MetroFramework.MetroTextBoxSize.Medium; this.usernameTextBox.Lines = new string[] { "metroTextBox1"}; - this.usernameTextBox.Location = new System.Drawing.Point(166, 35); + this.usernameTextBox.Location = new System.Drawing.Point(203, 42); + this.usernameTextBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.usernameTextBox.MaxLength = 32767; this.usernameTextBox.Multiline = true; this.usernameTextBox.Name = "usernameTextBox"; @@ -789,7 +876,7 @@ private void InitializeComponent() this.usernameTextBox.SelectionLength = 0; this.usernameTextBox.SelectionStart = 0; this.usernameTextBox.ShortcutsEnabled = true; - this.usernameTextBox.Size = new System.Drawing.Size(418, 36); + this.usernameTextBox.Size = new System.Drawing.Size(511, 43); this.usernameTextBox.TabIndex = 12; this.usernameTextBox.Text = "metroTextBox1"; this.usernameTextBox.UseSelectable = true; @@ -798,25 +885,28 @@ private void InitializeComponent() // // pin // - this.pin.Location = new System.Drawing.Point(6, 183); + this.pin.Location = new System.Drawing.Point(7, 220); + this.pin.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.pin.Name = "pin"; - this.pin.Size = new System.Drawing.Size(154, 36); + this.pin.Size = new System.Drawing.Size(188, 43); this.pin.TabIndex = 11; this.pin.Text = "Pin:"; // // label9 // - this.label9.Location = new System.Drawing.Point(6, 35); + this.label9.Location = new System.Drawing.Point(7, 42); + this.label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(154, 36); + this.label9.Size = new System.Drawing.Size(188, 43); this.label9.TabIndex = 10; this.label9.Text = "Username:"; // // label7 // - this.label7.Location = new System.Drawing.Point(6, 237); + this.label7.Location = new System.Drawing.Point(7, 284); + this.label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(154, 36); + this.label7.Size = new System.Drawing.Size(188, 43); this.label7.TabIndex = 1; this.label7.Text = "Roles:"; // @@ -826,16 +916,17 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.listBox2.FormattingEnabled = true; - this.listBox2.ItemHeight = 28; + this.listBox2.ItemHeight = 31; this.listBox2.Items.AddRange(new object[] { "Admin", "Chef", "Host", "Waiter"}); - this.listBox2.Location = new System.Drawing.Point(166, 237); + this.listBox2.Location = new System.Drawing.Point(203, 284); + this.listBox2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.listBox2.Name = "listBox2"; this.listBox2.SelectionMode = System.Windows.Forms.SelectionMode.MultiSimple; - this.listBox2.Size = new System.Drawing.Size(418, 116); + this.listBox2.Size = new System.Drawing.Size(510, 128); this.listBox2.TabIndex = 0; // // groupBox7 @@ -845,10 +936,11 @@ 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(741, 63); + this.groupBox7.Location = new System.Drawing.Point(906, 76); + this.groupBox7.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.groupBox7.Name = "groupBox7"; - this.groupBox7.Padding = new System.Windows.Forms.Padding(8); - this.groupBox7.Size = new System.Drawing.Size(595, 218); + this.groupBox7.Padding = new System.Windows.Forms.Padding(10, 10, 10, 10); + this.groupBox7.Size = new System.Drawing.Size(727, 262); this.groupBox7.TabIndex = 18; this.groupBox7.TabStop = false; this.groupBox7.Text = "Edit Employees"; @@ -859,9 +951,10 @@ 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(297, 30); + this.employeeRemoveButton.Location = new System.Drawing.Point(363, 36); + this.employeeRemoveButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.employeeRemoveButton.Name = "employeeRemoveButton"; - this.employeeRemoveButton.Size = new System.Drawing.Size(287, 177); + this.employeeRemoveButton.Size = new System.Drawing.Size(351, 212); this.employeeRemoveButton.TabIndex = 6; this.employeeRemoveButton.Text = "Remove Employee"; this.employeeRemoveButton.UseSelectable = true; @@ -872,9 +965,10 @@ 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(11, 30); + this.employeeAddButton.Location = new System.Drawing.Point(13, 36); + this.employeeAddButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.employeeAddButton.Name = "employeeAddButton"; - this.employeeAddButton.Size = new System.Drawing.Size(280, 177); + this.employeeAddButton.Size = new System.Drawing.Size(342, 212); this.employeeAddButton.TabIndex = 4; this.employeeAddButton.Text = "Add Employee"; this.employeeAddButton.UseSelectable = true; @@ -884,9 +978,10 @@ 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(3, 23); + this.metroLabel4.Location = new System.Drawing.Point(4, 28); + this.metroLabel4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.metroLabel4.Name = "metroLabel4"; - this.metroLabel4.Size = new System.Drawing.Size(700, 37); + this.metroLabel4.Size = new System.Drawing.Size(856, 44); this.metroLabel4.TabIndex = 17; this.metroLabel4.Text = "Select Employee"; this.metroLabel4.TextAlign = System.Drawing.ContentAlignment.BottomLeft; @@ -901,24 +996,26 @@ private void InitializeComponent() this.stationTab.Controls.Add(this.metroLabel3); this.stationTab.HorizontalScrollbarBarColor = true; this.stationTab.HorizontalScrollbarHighlightOnWheel = false; - this.stationTab.HorizontalScrollbarSize = 10; + this.stationTab.HorizontalScrollbarSize = 12; 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(1360, 790); + this.stationTab.Size = new System.Drawing.Size(1664, 956); this.stationTab.TabIndex = 3; this.stationTab.Text = "Edit Stations"; this.stationTab.VerticalScrollbarBarColor = true; this.stationTab.VerticalScrollbarHighlightOnWheel = false; - this.stationTab.VerticalScrollbarSize = 10; + this.stationTab.VerticalScrollbarSize = 12; // // 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.Location = new System.Drawing.Point(1269, 853); + this.stationSaveButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.stationSaveButton.Name = "stationSaveButton"; - this.stationSaveButton.Size = new System.Drawing.Size(298, 45); + this.stationSaveButton.Size = new System.Drawing.Size(364, 54); this.stationSaveButton.TabIndex = 15; this.stationSaveButton.Text = "Save"; this.stationSaveButton.UseSelectable = true; @@ -928,9 +1025,10 @@ 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(741, 712); + this.stationRevertButton.Location = new System.Drawing.Point(906, 854); + this.stationRevertButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.stationRevertButton.Name = "stationRevertButton"; - this.stationRevertButton.Size = new System.Drawing.Size(291, 45); + this.stationRevertButton.Size = new System.Drawing.Size(356, 54); this.stationRevertButton.TabIndex = 14; this.stationRevertButton.Text = "Revert"; this.stationRevertButton.UseSelectable = true; @@ -942,7 +1040,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 = 38; + this.stationListBox.ItemHeight = 45; this.stationListBox.Items.AddRange(new object[] { "Item1", "Item1", @@ -962,10 +1060,11 @@ private void InitializeComponent() "Item3", "Item3", "Item3"}); - this.stationListBox.Location = new System.Drawing.Point(7, 69); + this.stationListBox.Location = new System.Drawing.Point(9, 83); + this.stationListBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.stationListBox.Name = "stationListBox"; this.stationListBox.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended; - this.stationListBox.Size = new System.Drawing.Size(696, 688); + this.stationListBox.Size = new System.Drawing.Size(850, 814); this.stationListBox.TabIndex = 10; // // groupBox4 @@ -976,19 +1075,21 @@ 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(741, 287); + this.groupBox4.Location = new System.Drawing.Point(906, 344); + this.groupBox4.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.groupBox4.Name = "groupBox4"; - this.groupBox4.Padding = new System.Windows.Forms.Padding(8); - this.groupBox4.Size = new System.Drawing.Size(595, 418); + this.groupBox4.Padding = new System.Windows.Forms.Padding(10, 10, 10, 10); + this.groupBox4.Size = new System.Drawing.Size(727, 502); this.groupBox4.TabIndex = 13; this.groupBox4.TabStop = false; this.groupBox4.Text = "Options"; // // label6 // - this.label6.Location = new System.Drawing.Point(6, 35); + this.label6.Location = new System.Drawing.Point(7, 42); + this.label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(171, 36); + this.label6.Size = new System.Drawing.Size(209, 43); this.label6.TabIndex = 1; this.label6.Text = "Station Type:"; // @@ -998,15 +1099,16 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.stationTypeListBox.FormattingEnabled = true; - this.stationTypeListBox.ItemHeight = 28; + this.stationTypeListBox.ItemHeight = 31; 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.Location = new System.Drawing.Point(224, 42); + this.stationTypeListBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.stationTypeListBox.Name = "stationTypeListBox"; - this.stationTypeListBox.Size = new System.Drawing.Size(401, 340); + this.stationTypeListBox.Size = new System.Drawing.Size(489, 407); this.stationTypeListBox.Sorted = true; this.stationTypeListBox.TabIndex = 0; // @@ -1018,10 +1120,11 @@ 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(741, 63); + this.groupBox5.Location = new System.Drawing.Point(906, 76); + this.groupBox5.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.groupBox5.Name = "groupBox5"; - this.groupBox5.Padding = new System.Windows.Forms.Padding(8); - this.groupBox5.Size = new System.Drawing.Size(595, 218); + this.groupBox5.Padding = new System.Windows.Forms.Padding(10, 10, 10, 10); + this.groupBox5.Size = new System.Drawing.Size(727, 262); this.groupBox5.TabIndex = 12; this.groupBox5.TabStop = false; this.groupBox5.Text = "Edit Stations"; @@ -1032,9 +1135,10 @@ 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(397, 30); + this.stationRemoveButton.Location = new System.Drawing.Point(485, 36); + this.stationRemoveButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.stationRemoveButton.Name = "stationRemoveButton"; - this.stationRemoveButton.Size = new System.Drawing.Size(187, 177); + this.stationRemoveButton.Size = new System.Drawing.Size(229, 212); this.stationRemoveButton.TabIndex = 6; this.stationRemoveButton.Text = "Remove Station"; this.stationRemoveButton.UseSelectable = true; @@ -1045,9 +1149,10 @@ 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(204, 30); + this.stationRenameButton.Location = new System.Drawing.Point(249, 36); + this.stationRenameButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.stationRenameButton.Name = "stationRenameButton"; - this.stationRenameButton.Size = new System.Drawing.Size(187, 177); + this.stationRenameButton.Size = new System.Drawing.Size(229, 212); this.stationRenameButton.TabIndex = 5; this.stationRenameButton.Text = "Rename Station"; this.stationRenameButton.UseSelectable = true; @@ -1058,9 +1163,10 @@ 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(11, 30); + this.stationAddButton.Location = new System.Drawing.Point(13, 36); + this.stationAddButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.stationAddButton.Name = "stationAddButton"; - this.stationAddButton.Size = new System.Drawing.Size(187, 177); + this.stationAddButton.Size = new System.Drawing.Size(229, 212); this.stationAddButton.TabIndex = 4; this.stationAddButton.Text = "Add Station"; this.stationAddButton.UseSelectable = true; @@ -1070,60 +1176,23 @@ 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(3, 23); + this.metroLabel3.Location = new System.Drawing.Point(4, 28); + this.metroLabel3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.metroLabel3.Name = "metroLabel3"; - this.metroLabel3.Size = new System.Drawing.Size(700, 37); + this.metroLabel3.Size = new System.Drawing.Size(856, 44); this.metroLabel3.TabIndex = 11; this.metroLabel3.Text = "Select Stations"; this.metroLabel3.TextAlign = System.Drawing.ContentAlignment.BottomLeft; // - // menuSelectionBox - // - 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; - // - // menuListBox - // - 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 // - this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); + this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 24F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(1414, 918); + this.ClientSize = new System.Drawing.Size(1728, 1102); 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 8ad79ff..784c900 100644 --- a/Enigma/StationsGUI/AdminStationView.cs +++ b/Enigma/StationsGUI/AdminStationView.cs @@ -25,5 +25,29 @@ private void AdminStationView_Load(object sender, EventArgs e) { } + + private void loadAllData() { + + } + + private void loadMenus() { + + } + + private void loadMenuItems() + { + + } + + private void loadEmployees() + { + + } + + private void loadStations() + { + + } + } } From a47c482fccd430b56eb362850d7b0a7aace143c9 Mon Sep 17 00:00:00 2001 From: Evan Langlais Date: Thu, 30 Mar 2017 13:16:02 -0400 Subject: [PATCH 6/7] Added Menu loading functionality --- .../StationsGUI/AdminStationView.Designer.cs | 383 +++++++----------- Enigma/StationsGUI/AdminStationView.cs | 23 +- EnigmaX/Classes/{Menu.cs => EnigmaMenu.cs} | 19 +- EnigmaX/Classes/EnigmaMenuItem.cs | 59 +++ EnigmaX/Classes/MenuItem.cs | 42 -- EnigmaX/EnigmaX.csproj | 4 +- 6 files changed, 251 insertions(+), 279 deletions(-) rename EnigmaX/Classes/{Menu.cs => EnigmaMenu.cs} (54%) create mode 100644 EnigmaX/Classes/EnigmaMenuItem.cs delete mode 100644 EnigmaX/Classes/MenuItem.cs 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 @@ - - + + From 1aeb309343e34049a345c1359069bfc2ccc6fafb Mon Sep 17 00:00:00 2001 From: Evan Langlais Date: Fri, 31 Mar 2017 13:07:37 -0400 Subject: [PATCH 7/7] Fully pulls and draws data in admin panel --- .../StationsGUI/AdminStationView.Designer.cs | 87 +++++++++---------- Enigma/StationsGUI/AdminStationView.cs | 87 +++++++++++++++++-- EnigmaX/Classes/Employee.cs | 11 +++ EnigmaX/Classes/EnigmaMenu.cs | 16 +++- EnigmaX/Classes/EnigmaMenuItem.cs | 13 ++- EnigmaX/Classes/Station.cs | 7 +- 6 files changed, 163 insertions(+), 58 deletions(-) diff --git a/Enigma/StationsGUI/AdminStationView.Designer.cs b/Enigma/StationsGUI/AdminStationView.Designer.cs index 428c43f..656b395 100644 --- a/Enigma/StationsGUI/AdminStationView.Designer.cs +++ b/Enigma/StationsGUI/AdminStationView.Designer.cs @@ -31,7 +31,6 @@ private void InitializeComponent() this.adminTabControl = new MetroFramework.Controls.MetroTabControl(); this.menuTab = new MetroFramework.Controls.MetroTabPage(); this.menuListBox = new System.Windows.Forms.ListBox(); - this.menuSelectionBox = new MetroFramework.Controls.MetroComboBox(); this.menuSaveButton = new MetroFramework.Controls.MetroButton(); this.menuRevertButton = new MetroFramework.Controls.MetroButton(); this.groupBox1 = new System.Windows.Forms.GroupBox(); @@ -44,7 +43,7 @@ private void InitializeComponent() 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.menuItemListBox = 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(); @@ -91,6 +90,7 @@ private void InitializeComponent() this.stationRenameButton = new MetroFramework.Controls.MetroButton(); this.stationAddButton = new MetroFramework.Controls.MetroButton(); this.metroLabel3 = new MetroFramework.Controls.MetroLabel(); + this.menuSelectionBox = new System.Windows.Forms.ComboBox(); this.adminTabControl.SuspendLayout(); this.menuTab.SuspendLayout(); this.groupBox1.SuspendLayout(); @@ -123,11 +123,12 @@ private void InitializeComponent() this.adminTabControl.Size = new System.Drawing.Size(1368, 832); this.adminTabControl.TabIndex = 0; this.adminTabControl.UseSelectable = true; + this.adminTabControl.SelectedIndexChanged += new System.EventHandler(this.adminTabControl_SelectedIndexChanged); // // menuTab // - this.menuTab.Controls.Add(this.menuListBox); this.menuTab.Controls.Add(this.menuSelectionBox); + this.menuTab.Controls.Add(this.menuListBox); this.menuTab.Controls.Add(this.menuSaveButton); this.menuTab.Controls.Add(this.menuRevertButton); this.menuTab.Controls.Add(this.groupBox1); @@ -173,18 +174,6 @@ private void InitializeComponent() this.menuListBox.Size = new System.Drawing.Size(696, 650); this.menuListBox.TabIndex = 11; // - // menuSelectionBox - // - 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(127, 36); - this.menuSelectionBox.Name = "menuSelectionBox"; - this.menuSelectionBox.Size = new System.Drawing.Size(318, 29); - this.menuSelectionBox.TabIndex = 10; - this.menuSelectionBox.UseSelectable = true; - // // menuSaveButton // this.menuSaveButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); @@ -219,7 +208,7 @@ private void InitializeComponent() 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, 8, 8, 8); + 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; @@ -262,7 +251,7 @@ private void InitializeComponent() 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(741, 63); this.menuGroup1.Name = "menuGroup1"; - this.menuGroup1.Padding = new System.Windows.Forms.Padding(8, 8, 8, 8); + this.menuGroup1.Padding = new System.Windows.Forms.Padding(8); this.menuGroup1.Size = new System.Drawing.Size(595, 218); this.menuGroup1.TabIndex = 6; this.menuGroup1.TabStop = false; @@ -322,7 +311,7 @@ private void InitializeComponent() // itemsTab // this.itemsTab.Controls.Add(this.itemsSaveButton); - this.itemsTab.Controls.Add(this.itemListBox); + this.itemsTab.Controls.Add(this.menuItemListBox); this.itemsTab.Controls.Add(this.itemsRevertButton); this.itemsTab.Controls.Add(this.groupBox2); this.itemsTab.Controls.Add(this.groupBox3); @@ -351,15 +340,15 @@ private void InitializeComponent() this.itemsSaveButton.Text = "Save"; this.itemsSaveButton.UseSelectable = true; // - // itemListBox + // menuItemListBox // - this.itemListBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + this.menuItemListBox.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.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 = 38; - this.itemListBox.Items.AddRange(new object[] { + this.menuItemListBox.Font = new System.Drawing.Font("Segoe UI Light", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.menuItemListBox.FormattingEnabled = true; + this.menuItemListBox.ItemHeight = 38; + this.menuItemListBox.Items.AddRange(new object[] { "Item1", "Item1", "Item1", @@ -378,11 +367,11 @@ private void InitializeComponent() "Item3", "Item3", "Item3"}); - 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(696, 650); - this.itemListBox.TabIndex = 8; + this.menuItemListBox.Location = new System.Drawing.Point(7, 69); + this.menuItemListBox.Name = "menuItemListBox"; + this.menuItemListBox.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended; + this.menuItemListBox.Size = new System.Drawing.Size(696, 650); + this.menuItemListBox.TabIndex = 8; // // itemsRevertButton // @@ -412,7 +401,7 @@ private void InitializeComponent() 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(741, 237); this.groupBox2.Name = "groupBox2"; - this.groupBox2.Padding = new System.Windows.Forms.Padding(8, 8, 8, 8); + this.groupBox2.Padding = new System.Windows.Forms.Padding(8); this.groupBox2.Size = new System.Drawing.Size(595, 470); this.groupBox2.TabIndex = 12; this.groupBox2.TabStop = false; @@ -436,9 +425,9 @@ private void InitializeComponent() // // this.itemDescriptionTextbox.CustomButton.Image = null; - this.itemDescriptionTextbox.CustomButton.Location = new System.Drawing.Point(227, 1); + this.itemDescriptionTextbox.CustomButton.Location = new System.Drawing.Point(278, 1); this.itemDescriptionTextbox.CustomButton.Name = ""; - this.itemDescriptionTextbox.CustomButton.Size = new System.Drawing.Size(114, 116); + 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; @@ -540,7 +529,7 @@ private void InitializeComponent() 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(741, 63); this.groupBox3.Name = "groupBox3"; - this.groupBox3.Padding = new System.Windows.Forms.Padding(8, 8, 8, 8); + this.groupBox3.Padding = new System.Windows.Forms.Padding(8); this.groupBox3.Size = new System.Drawing.Size(595, 168); this.groupBox3.TabIndex = 11; this.groupBox3.TabStop = false; @@ -692,7 +681,7 @@ private void InitializeComponent() 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(741, 287); this.groupBox6.Name = "groupBox6"; - this.groupBox6.Padding = new System.Windows.Forms.Padding(8, 8, 8, 8); + this.groupBox6.Padding = new System.Windows.Forms.Padding(8); this.groupBox6.Size = new System.Drawing.Size(595, 418); this.groupBox6.TabIndex = 19; this.groupBox6.TabStop = false; @@ -706,9 +695,9 @@ private void InitializeComponent() // // this.lastNameTextBox.CustomButton.Image = null; - this.lastNameTextBox.CustomButton.Location = new System.Drawing.Point(314, 2); + this.lastNameTextBox.CustomButton.Location = new System.Drawing.Point(384, 2); this.lastNameTextBox.CustomButton.Name = ""; - this.lastNameTextBox.CustomButton.Size = new System.Drawing.Size(25, 26); + 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; @@ -750,9 +739,9 @@ private void InitializeComponent() // // this.firstNameTextBox.CustomButton.Image = null; - this.firstNameTextBox.CustomButton.Location = new System.Drawing.Point(314, 2); + this.firstNameTextBox.CustomButton.Location = new System.Drawing.Point(384, 2); this.firstNameTextBox.CustomButton.Name = ""; - this.firstNameTextBox.CustomButton.Size = new System.Drawing.Size(25, 26); + 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; @@ -808,9 +797,9 @@ private void InitializeComponent() // // this.usernameTextBox.CustomButton.Image = null; - this.usernameTextBox.CustomButton.Location = new System.Drawing.Point(314, 2); + this.usernameTextBox.CustomButton.Location = new System.Drawing.Point(384, 2); this.usernameTextBox.CustomButton.Name = ""; - this.usernameTextBox.CustomButton.Size = new System.Drawing.Size(25, 26); + 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; @@ -887,7 +876,7 @@ private void InitializeComponent() 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(741, 63); this.groupBox7.Name = "groupBox7"; - this.groupBox7.Padding = new System.Windows.Forms.Padding(8, 8, 8, 8); + this.groupBox7.Padding = new System.Windows.Forms.Padding(8); this.groupBox7.Size = new System.Drawing.Size(595, 218); this.groupBox7.TabIndex = 18; this.groupBox7.TabStop = false; @@ -1018,7 +1007,7 @@ private void InitializeComponent() 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, 8, 8, 8); + 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; @@ -1060,7 +1049,7 @@ private void InitializeComponent() 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, 8, 8, 8); + 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; @@ -1117,6 +1106,14 @@ private void InitializeComponent() this.metroLabel3.Text = "Select Stations"; this.metroLabel3.TextAlign = System.Drawing.ContentAlignment.BottomLeft; // + // menuSelectionBox + // + this.menuSelectionBox.FormattingEnabled = true; + this.menuSelectionBox.Location = new System.Drawing.Point(169, 35); + this.menuSelectionBox.Name = "menuSelectionBox"; + this.menuSelectionBox.Size = new System.Drawing.Size(355, 28); + this.menuSelectionBox.TabIndex = 12; + // // AdminStationView // this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); @@ -1159,7 +1156,7 @@ 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 itemListBox; + private System.Windows.Forms.ListBox menuItemListBox; private System.Windows.Forms.GroupBox groupBox2; private System.Windows.Forms.Label label2; private System.Windows.Forms.ListBox categoryListBox; @@ -1207,7 +1204,7 @@ private void InitializeComponent() private MetroFramework.Controls.MetroTextBox usernameTextBox; private System.Windows.Forms.Label pin; private System.Windows.Forms.Label label9; - private MetroFramework.Controls.MetroComboBox menuSelectionBox; private System.Windows.Forms.ListBox menuListBox; + private System.Windows.Forms.ComboBox menuSelectionBox; } } \ No newline at end of file diff --git a/Enigma/StationsGUI/AdminStationView.cs b/Enigma/StationsGUI/AdminStationView.cs index c1e2cc7..76afca5 100644 --- a/Enigma/StationsGUI/AdminStationView.cs +++ b/Enigma/StationsGUI/AdminStationView.cs @@ -17,10 +17,10 @@ namespace Enigma.StationsGUI public partial class AdminStationView : MetroForm { Employee loggedIn; - List menuItems = new List(); + List enigmaMenuItems = new List(); List enigmaMenus = new List(); - List employees = new List(); - List stations = new List(); + List enigmaEmployees = new List(); + List enigmaStations = new List(); public AdminStationView(Employee loggedIn) { @@ -30,7 +30,8 @@ public AdminStationView(Employee loggedIn) private void AdminStationView_Load(object sender, EventArgs e) { - + loadAllData(); + drawAllData(); } private void loadAllData() { @@ -40,6 +41,54 @@ private void loadAllData() { loadEmployees(); } + private void drawAllData() + { + drawMenus(); + drawMenuItems(); + drawStations(); + drawEmployees(); + } + + private void drawMenus() { + menuSelectionBox.Items.Clear(); + menuListBox.Items.Clear(); + foreach (EnigmaMenu menu in enigmaMenus) + { + menuSelectionBox.Items.Add(menu); + foreach (EnigmaMenuItem item in menu.Items) { + menuListBox.Items.Add(item); + } + + } + } + + private void drawMenuItems() + { + menuItemListBox.Items.Clear(); + foreach (EnigmaMenuItem item in enigmaMenuItems) + { + menuItemListBox.Items.Add(item); + } + } + + private void drawStations() + { + stationListBox.Items.Clear(); + foreach (Station station in enigmaStations) + { + stationListBox.Items.Add(station); + } + } + + private void drawEmployees() + { + employeeListBox.Items.Clear(); + foreach (Employee employee in enigmaEmployees) + { + employeeListBox.Items.Add(employee); + } + } + private void loadMenus() { DBConnect db = new DBConnect(); List> menus = db.ReadCommand("SELECT * FROM Menus", "id", "title", "items"); @@ -51,18 +100,42 @@ private void loadMenus() { private void loadMenuItems() { - + DBConnect db = new DBConnect(); + List> result = db.ReadCommand("SELECT * FROM MenuItems", "id", "title", "description", "price", "category", "printingStation"); + foreach (Dictionary row in result) + { + EnigmaMenuItem menuItem = new EnigmaMenuItem(Convert.ToInt32(row["id"]), row["title"], row["description"], float.Parse(row["price"]), (MenuItemType)Enum.Parse(typeof(MenuItemType), row["category"]), (PrintingStationType)Enum.Parse(typeof(PrintingStationType), row["printingStation"])); + enigmaMenuItems.Add(menuItem); + } } private void loadEmployees() { - + DBConnect db = new DBConnect(); + List> employees = db.ReadCommand("SELECT * FROM Users", "id", "username", "first", "last", "role", "pin"); + foreach (Dictionary row in employees) + { + Employee employee = new Employee(Convert.ToInt32(row["id"]), row["username"], row["first"], row["last"], Employee.getRoles(row["role"]), Convert.ToInt32(row["pin"])); + enigmaEmployees.Add(employee); + } } private void loadStations() { - + DBConnect db = new DBConnect(); + List> result = db.ReadCommand("SELECT * FROM Stations", "stationid", "type"); + foreach (Dictionary row in result) + { + Station station = new Station((StationTypeDef)Enum.Parse(typeof(StationTypeDef), row["type"]), row["stationid"]); + enigmaStations.Add(station); + } } + private void adminTabControl_SelectedIndexChanged(object sender, EventArgs e) + { + switch (e.ToString()) { + + } + } } } diff --git a/EnigmaX/Classes/Employee.cs b/EnigmaX/Classes/Employee.cs index dc2afbb..7ebd3bc 100644 --- a/EnigmaX/Classes/Employee.cs +++ b/EnigmaX/Classes/Employee.cs @@ -26,6 +26,12 @@ public Employee(int id, string username, string first, string last, List Items { get @@ -40,10 +47,6 @@ public List Items } } - public void updateMenuInDB() { - - } - public static List stringToItemList(string items) { List itemList = new List(); foreach (string item in items.Split('|')) { @@ -52,5 +55,10 @@ public static List stringToItemList(string items) { return itemList; } + public override string ToString() + { + return _id + ": " + _title; + } + } } diff --git a/EnigmaX/Classes/EnigmaMenuItem.cs b/EnigmaX/Classes/EnigmaMenuItem.cs index 131cb76..ae6ee7a 100644 --- a/EnigmaX/Classes/EnigmaMenuItem.cs +++ b/EnigmaX/Classes/EnigmaMenuItem.cs @@ -8,7 +8,7 @@ namespace EnigmaX.Classes { - public enum MenuItemType { appitizer, entre, dessert, drink, other }; + public enum MenuItemType { appetizer, entre, dessert, drink, other }; public enum PrintingStationType { hot, cold }; public class EnigmaMenuItem @@ -30,6 +30,13 @@ public EnigmaMenuItem(int id, string title, string description, float price, Men _printingType = printingType; } + public int Id { + get + { + return _id; + } + } + public string Title { get { return _title; @@ -54,6 +61,10 @@ public static EnigmaMenuItem idToMenuItem(int id) return null; } } + + public override string ToString() { + return _id + ": " + _title; + } } } diff --git a/EnigmaX/Classes/Station.cs b/EnigmaX/Classes/Station.cs index 4e3299d..13070ba 100644 --- a/EnigmaX/Classes/Station.cs +++ b/EnigmaX/Classes/Station.cs @@ -8,7 +8,7 @@ namespace EnigmaX.Classes { public enum StationTypeDef { chef, waiter, admin, host }; - public abstract class Station + public class Station { private string _stationId = ""; private StationTypeDef _stationType; @@ -63,6 +63,11 @@ public virtual void showView() { } } + public override string ToString() + { + return _stationType + ": " +_stationId; + } + }