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