diff --git a/Enigma/Enigma.csproj b/Enigma/Enigma.csproj
index 2212980..741c3e2 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/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/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..656b395
--- /dev/null
+++ b/Enigma/StationsGUI/AdminStationView.Designer.cs
@@ -0,0 +1,1210 @@
+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.menuListBox = new System.Windows.Forms.ListBox();
+ this.menuSaveButton = new MetroFramework.Controls.MetroButton();
+ this.menuRevertButton = new MetroFramework.Controls.MetroButton();
+ this.groupBox1 = new System.Windows.Forms.GroupBox();
+ this.label1 = new System.Windows.Forms.Label();
+ 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.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();
+ 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();
+ 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.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();
+ 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.menuSelectionBox = new System.Windows.Forms.ComboBox();
+ this.adminTabControl.SuspendLayout();
+ this.menuTab.SuspendLayout();
+ this.groupBox1.SuspendLayout();
+ this.menuGroup1.SuspendLayout();
+ this.itemsTab.SuspendLayout();
+ this.groupBox2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.itemPrice)).BeginInit();
+ this.groupBox3.SuspendLayout();
+ this.employeeTab.SuspendLayout();
+ this.groupBox6.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.pinNumber)).BeginInit();
+ this.groupBox7.SuspendLayout();
+ this.stationTab.SuspendLayout();
+ this.groupBox4.SuspendLayout();
+ this.groupBox5.SuspendLayout();
+ 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;
+ this.adminTabControl.SelectedIndexChanged += new System.EventHandler(this.adminTabControl_SelectedIndexChanged);
+ //
+ // menuTab
+ //
+ 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);
+ this.menuTab.Controls.Add(this.menuGroup1);
+ this.menuTab.Controls.Add(this.metroLabel1);
+ 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;
+ //
+ // 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(8, 69);
+ 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;
+ //
+ // 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;
+ //
+ // 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;
+ //
+ // 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";
+ //
+ // 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:";
+ //
+ // 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;
+ //
+ // 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";
+ //
+ // 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;
+ //
+ // 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;
+ //
+ // 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;
+ //
+ // 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;
+ //
+ // itemsTab
+ //
+ this.itemsTab.Controls.Add(this.itemsSaveButton);
+ this.itemsTab.Controls.Add(this.menuItemListBox);
+ 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;
+ //
+ // 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;
+ //
+ // menuItemListBox
+ //
+ 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.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",
+ "Item1",
+ "Item1",
+ "Item1",
+ "Item2",
+ "Item2",
+ "Item2",
+ "Item2",
+ "Item2",
+ "Item2",
+ "Item3",
+ "Item3",
+ "Item3",
+ "Item3",
+ "Item3",
+ "Item3"});
+ 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
+ //
+ 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)
+ | 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";
+ //
+ // 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, 32);
+ 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);
+ 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, 116);
+ 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;
+ //
+ // 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;
+ //
+ // 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, 650);
+ 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";
+ //
+ // 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);
+ 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, 88);
+ 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;
+ //
+ // 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;
+ //
+ // 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, 650);
+ 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;
+ //
+ // 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);
+ 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.groupBox1.ResumeLayout(false);
+ this.menuGroup1.ResumeLayout(false);
+ this.itemsTab.ResumeLayout(false);
+ this.groupBox2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.itemPrice)).EndInit();
+ this.groupBox3.ResumeLayout(false);
+ this.employeeTab.ResumeLayout(false);
+ this.groupBox6.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);
+
+ }
+
+ #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 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 menuItemListBox;
+ 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 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
new file mode 100644
index 0000000..76afca5
--- /dev/null
+++ b/Enigma/StationsGUI/AdminStationView.cs
@@ -0,0 +1,141 @@
+using EnigmaX;
+using EnigmaX.Classes;
+using MetroFramework.Forms;
+using MySql.Data.MySqlClient;
+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;
+ List enigmaMenuItems = new List();
+ List enigmaMenus = new List();
+ List enigmaEmployees = new List();
+ List enigmaStations = new List();
+
+ public AdminStationView(Employee loggedIn)
+ {
+ InitializeComponent();
+ this.loggedIn = loggedIn;
+ }
+
+ private void AdminStationView_Load(object sender, EventArgs e)
+ {
+ loadAllData();
+ drawAllData();
+ }
+
+ private void loadAllData() {
+ loadMenus();
+ loadMenuItems();
+ loadStations();
+ 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");
+ 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()
+ {
+ 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/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/Enigma/StationsGUI/HostStationView.cs b/Enigma/StationsGUI/HostStationView.cs
index fe0f977..02319a7 100644
--- a/Enigma/StationsGUI/HostStationView.cs
+++ b/Enigma/StationsGUI/HostStationView.cs
@@ -153,9 +153,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
@@ -198,8 +198,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();
}
@@ -274,7 +274,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..3076550 100644
--- a/EnigmaX/Classes/DBConnect.cs
+++ b/EnigmaX/Classes/DBConnect.cs
@@ -70,33 +70,40 @@ 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);
-
- //Execute command
- cmd.ExecuteNonQuery();
+ public void WriteCommand(MySqlCommand cmd)
+ {
- //close connection
- this.CloseConnection();
- }
+ if (this.OpenConnection() == true)
+ {
+ //create command and assign the query and connection from the constructor
+ cmd.Connection = getConnection();
+ //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
+ //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())
{
@@ -128,27 +135,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/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;
+
+ public EnigmaMenu(int id, string title, List items) {
+ _id = id;
+ _title = title;
+ _items = items;
+ }
+
+ public string Title {
+ get {
+ return _title;
+ }
+ set {
+ _title = value;
+ }
+ }
+
+ public int Id {
+ get
+ {
+ return _id;
+ }
+ }
+
+ public List Items
+ {
+ get
+ {
+ return _items;
+ }
+ set
+ {
+ _items = value;
+ }
+ }
+
+ 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;
+ }
+
+ public override string ToString()
+ {
+ return _id + ": " + _title;
+ }
+
+ }
+}
diff --git a/EnigmaX/Classes/EnigmaMenuItem.cs b/EnigmaX/Classes/EnigmaMenuItem.cs
new file mode 100644
index 0000000..ae6ee7a
--- /dev/null
+++ b/EnigmaX/Classes/EnigmaMenuItem.cs
@@ -0,0 +1,70 @@
+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 { appetizer, 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 int Id {
+ get
+ {
+ return _id;
+ }
+ }
+
+ 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;
+ }
+ }
+
+ 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;
+ }
+
}
diff --git a/EnigmaX/EnigmaX.csproj b/EnigmaX/EnigmaX.csproj
index 68b33f5..99db8d0 100644
--- a/EnigmaX/EnigmaX.csproj
+++ b/EnigmaX/EnigmaX.csproj
@@ -62,6 +62,8 @@
+
+
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