diff --git a/Enigma/Enigma.csproj b/Enigma/Enigma.csproj
index 28c2d39..34e29e0 100644
--- a/Enigma/Enigma.csproj
+++ b/Enigma/Enigma.csproj
@@ -200,6 +200,9 @@
+
+
+
";
+ this.addItem.UseSelectable = true;
+ this.addItem.Click += new System.EventHandler(this.addItem_Click);
+ //
+ // removeItem
+ //
+ this.removeItem.Location = new System.Drawing.Point(579, 334);
+ this.removeItem.Name = "removeItem";
+ this.removeItem.Size = new System.Drawing.Size(155, 59);
+ this.removeItem.TabIndex = 9;
+ this.removeItem.Text = "<-- Remove";
+ this.removeItem.UseSelectable = true;
+ this.removeItem.Click += new System.EventHandler(this.removeItem_Click);
+ //
+ // menuItems
+ //
+ this.menuItems.Font = new System.Drawing.Font("Segoe UI Light", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.menuItems.FormattingEnabled = true;
+ this.menuItems.ItemHeight = 31;
+ this.menuItems.Location = new System.Drawing.Point(34, 156);
+ this.menuItems.Name = "menuItems";
+ this.menuItems.Size = new System.Drawing.Size(514, 345);
+ this.menuItems.TabIndex = 10;
+ //
+ // orderItems
+ //
+ this.orderItems.Font = new System.Drawing.Font("Segoe UI Light", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.orderItems.FormattingEnabled = true;
+ this.orderItems.ItemHeight = 31;
+ this.orderItems.Location = new System.Drawing.Point(769, 156);
+ this.orderItems.Name = "orderItems";
+ this.orderItems.Size = new System.Drawing.Size(514, 345);
+ this.orderItems.TabIndex = 11;
+ //
+ // metroLabel2
+ //
+ this.metroLabel2.AutoSize = true;
+ this.metroLabel2.Location = new System.Drawing.Point(613, 183);
+ this.metroLabel2.Name = "metroLabel2";
+ this.metroLabel2.Size = new System.Drawing.Size(87, 20);
+ this.metroLabel2.TabIndex = 12;
+ this.metroLabel2.Text = "metroLabel2";
+ //
+ // submit
+ //
+ this.submit.Location = new System.Drawing.Point(1117, 14);
+ this.submit.Name = "submit";
+ this.submit.Size = new System.Drawing.Size(220, 66);
+ this.submit.TabIndex = 13;
+ this.submit.Text = "Submit Order";
+ this.submit.UseSelectable = true;
+ this.submit.Click += new System.EventHandler(this.submit_Click);
+ //
+ // metroButton1
+ //
+ this.metroButton1.Location = new System.Drawing.Point(840, 56);
+ this.metroButton1.Name = "metroButton1";
+ this.metroButton1.Size = new System.Drawing.Size(75, 23);
+ this.metroButton1.TabIndex = 14;
+ this.metroButton1.Text = "metroButton1";
+ this.metroButton1.UseSelectable = true;
+ this.metroButton1.Click += new System.EventHandler(this.metroButton1_Click);
+ //
// tableOrder
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1386, 810);
+ this.Controls.Add(this.metroButton1);
+ this.Controls.Add(this.submit);
+ this.Controls.Add(this.metroLabel2);
+ this.Controls.Add(this.orderItems);
+ this.Controls.Add(this.menuItems);
+ this.Controls.Add(this.removeItem);
+ this.Controls.Add(this.addItem);
+ this.Controls.Add(this.metroLabel1);
this.Controls.Add(this.order);
this.Controls.Add(this.Menu);
- this.Controls.Add(this.dataGridView2);
- this.Controls.Add(this.dataGridView1);
- this.Controls.Add(this.metroComboBox1);
+ this.Controls.Add(this.itemType);
this.Name = "tableOrder";
this.Style = MetroFramework.MetroColorStyle.Orange;
this.Text = "tableOrder";
this.Load += new System.EventHandler(this.tableOrder_Load);
- ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@@ -112,10 +181,16 @@ private void InitializeComponent()
#endregion
- private MetroFramework.Controls.MetroComboBox metroComboBox1;
- private System.Windows.Forms.DataGridView dataGridView1;
- private System.Windows.Forms.DataGridView dataGridView2;
+ private MetroFramework.Controls.MetroComboBox itemType;
private MetroFramework.Controls.MetroLabel Menu;
private MetroFramework.Controls.MetroLabel order;
+ private MetroFramework.Controls.MetroLabel metroLabel1;
+ private MetroFramework.Controls.MetroButton addItem;
+ private MetroFramework.Controls.MetroButton removeItem;
+ private System.Windows.Forms.ListBox menuItems;
+ private System.Windows.Forms.ListBox orderItems;
+ private MetroFramework.Controls.MetroLabel metroLabel2;
+ private MetroFramework.Controls.MetroButton submit;
+ private MetroFramework.Controls.MetroButton metroButton1;
}
}
\ No newline at end of file
diff --git a/Enigma/Popups/tableOrder.cs b/Enigma/Popups/tableOrder.cs
index f5dc938..ddbb7b7 100644
--- a/Enigma/Popups/tableOrder.cs
+++ b/Enigma/Popups/tableOrder.cs
@@ -8,19 +8,143 @@
using System.Threading.Tasks;
using System.Windows.Forms;
using MetroFramework.Forms;
+using EnigmaX.Classes;
+using EnigmaX;
+using Enigma.StationsGUI;
+using MySql.Data.MySqlClient;
namespace Enigma.Popups
{
public partial class tableOrder : MetroForm
{
- public tableOrder()
+ private List enigmaMenuItems = new List();
+ private List orderedItems = new List();
+ WaiterStationView wsv = new WaiterStationView();
+
+ public tableOrder(WaiterStationView waiterStation)
{
InitializeComponent();
+ loadMenuItems();
+ wsv = waiterStation;
+ metroLabel2.Text.Equals(wsv._tableNumber.ToString());
}
private void tableOrder_Load(object sender, EventArgs e)
{
+
+ }
+
+ 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 drawMenuItems(int type)
+ {
+ menuItems.Items.Clear();
+ foreach (EnigmaMenuItem item in enigmaMenuItems)
+ {
+ if (item.getItemType() == type)
+ {
+ menuItems.Items.Add(item);
+ }
+
+ }
+ }
+
+ private void drawOrderedItems()
+ {
+ orderItems.Items.Clear();
+ foreach (EnigmaMenuItem item in orderedItems)
+ {
+ orderItems.Items.Add(item);
+ }
+ }
+
+ private void itemType_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ if (itemType.Text.Equals("appetizer")){
+ drawMenuItems(1);
+ }
+ else if (itemType.Text.Equals("entree"))
+ {
+ drawMenuItems(2);
+ }
+ else if (itemType.Text.Equals("desert"))
+ {
+ drawMenuItems(3);
+ }
+ else if (itemType.Text.Equals("drink"))
+ {
+ drawMenuItems(4);
+ }else if (itemType.Text.Equals("other"))
+ {
+ drawMenuItems(5);
+ }
+ }
+
+ private void menuItems_SelectedIndexChanged(object sender, EventArgs e)
+ {
}
+
+ private void addItem_Click(object sender, EventArgs e)
+ {
+ // menuItems.SelectedItems.Add(orderedItems);
+ EnigmaMenuItem item = (EnigmaMenuItem)menuItems.SelectedItem;
+ if (item==null) { }
+ else
+ {
+ orderedItems.Add(item);
+ }
+ metroLabel2.Text = orderedItems.Count().ToString();
+ //metroLabel2.Text = orderItemsToString();
+ drawOrderedItems();
+ }
+
+ private void removeItem_Click(object sender, EventArgs e)
+ {
+ EnigmaMenuItem item = (EnigmaMenuItem)orderItems.SelectedItem;
+ orderedItems.Remove(item);
+ metroLabel2.Text = orderedItems.Count().ToString();
+ drawOrderedItems();
+ }
+
+ private string orderItemsToString()
+ {
+ string x = null;
+
+ foreach(EnigmaMenuItem item in orderedItems)
+ {
+ x = x + item.Id.ToString() + '|';
+ }
+ return x;
+ }
+
+ private void submit_Click(object sender, EventArgs e)
+ {
+ string delimitedOrder = orderItemsToString();
+ DBConnect db = new DBConnect();
+ db.getConnection().Open();
+ //MySqlCommand cmd = new MySqlCommand("UPDATE Seating SET Order = @Order WHERE tableNumber = @tableNumber", db.getConnection());
+ MySqlCommand cmd = new MySqlCommand("UPDATE Seating SET tableOrder = @tableOrder WHERE tableNumber = @tableNumber", db.getConnection());
+ cmd.Parameters.AddWithValue("@tableOrder", delimitedOrder);
+ cmd.Parameters.AddWithValue("@tableNumber",wsv._tableNumber);
+ cmd.ExecuteNonQuery();
+ db.getConnection().Close();
+ this.Close();
+
+ }
+
+ private void metroButton1_Click(object sender, EventArgs e)
+ {
+ metroLabel2.Text = orderItemsToString() + " " + wsv._tableNumber.ToString();
+ }
}
}
diff --git a/Enigma/Properties/Resources.Designer.cs b/Enigma/Properties/Resources.Designer.cs
index 2705cda..6da1a45 100644
--- a/Enigma/Properties/Resources.Designer.cs
+++ b/Enigma/Properties/Resources.Designer.cs
@@ -60,6 +60,16 @@ internal Resources() {
}
}
+ ///
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap gradient_background_26046_26731_hd_wallpapers_jpg {
+ get {
+ object obj = ResourceManager.GetObject("gradient-background-26046-26731-hd-wallpapers.jpg", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
///
/// Looks up a localized resource of type System.Drawing.Bitmap.
///
diff --git a/Enigma/Properties/Resources.resx b/Enigma/Properties/Resources.resx
index b2347e8..fb29232 100644
--- a/Enigma/Properties/Resources.resx
+++ b/Enigma/Properties/Resources.resx
@@ -121,4 +121,7 @@
..\Resources\lonely_sun_by_butterflypics-d8orr9a.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\gradient-background-26046-26731-hd-wallpapers.jpg.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
\ No newline at end of file
diff --git a/Enigma/Resources/gradient-background-26046-26731-hd-wallpapers.jpg.png b/Enigma/Resources/gradient-background-26046-26731-hd-wallpapers.jpg.png
new file mode 100644
index 0000000..c26e80b
Binary files /dev/null and b/Enigma/Resources/gradient-background-26046-26731-hd-wallpapers.jpg.png differ
diff --git a/Enigma/Stations/WaiterStation.cs b/Enigma/Stations/WaiterStation.cs
index 08a930b..05943ce 100644
--- a/Enigma/Stations/WaiterStation.cs
+++ b/Enigma/Stations/WaiterStation.cs
@@ -14,6 +14,10 @@ public WaiterStation(string stationid) : base(StationTypeDef.host, stationid)
view = new StationsGUI.WaiterStationView();
}
-
+
+ public override void showView()
+ {
+ view.Show();
+ }
}
}
diff --git a/Enigma/StationsGUI/AdminStationView.Designer.cs b/Enigma/StationsGUI/AdminStationView.Designer.cs
index 656b395..f358aca 100644
--- a/Enigma/StationsGUI/AdminStationView.Designer.cs
+++ b/Enigma/StationsGUI/AdminStationView.Designer.cs
@@ -30,6 +30,7 @@ private void InitializeComponent()
{
this.adminTabControl = new MetroFramework.Controls.MetroTabControl();
this.menuTab = new MetroFramework.Controls.MetroTabPage();
+ this.menuSelectionBox = new System.Windows.Forms.ComboBox();
this.menuListBox = new System.Windows.Forms.ListBox();
this.menuSaveButton = new MetroFramework.Controls.MetroButton();
this.menuRevertButton = new MetroFramework.Controls.MetroButton();
@@ -90,7 +91,6 @@ private void InitializeComponent()
this.stationRenameButton = new MetroFramework.Controls.MetroButton();
this.stationAddButton = new MetroFramework.Controls.MetroButton();
this.metroLabel3 = new MetroFramework.Controls.MetroLabel();
- this.menuSelectionBox = new System.Windows.Forms.ComboBox();
this.adminTabControl.SuspendLayout();
this.menuTab.SuspendLayout();
this.groupBox1.SuspendLayout();
@@ -117,10 +117,11 @@ private void InitializeComponent()
this.adminTabControl.Controls.Add(this.itemsTab);
this.adminTabControl.Controls.Add(this.employeeTab);
this.adminTabControl.Controls.Add(this.stationTab);
- this.adminTabControl.Location = new System.Drawing.Point(23, 63);
+ this.adminTabControl.Location = new System.Drawing.Point(20, 50);
+ this.adminTabControl.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.adminTabControl.Name = "adminTabControl";
this.adminTabControl.SelectedIndex = 0;
- this.adminTabControl.Size = new System.Drawing.Size(1368, 832);
+ this.adminTabControl.Size = new System.Drawing.Size(1216, 666);
this.adminTabControl.TabIndex = 0;
this.adminTabControl.UseSelectable = true;
this.adminTabControl.SelectedIndexChanged += new System.EventHandler(this.adminTabControl_SelectedIndexChanged);
@@ -136,15 +137,25 @@ private void InitializeComponent()
this.menuTab.Controls.Add(this.metroLabel1);
this.menuTab.HorizontalScrollbarBarColor = true;
this.menuTab.HorizontalScrollbarHighlightOnWheel = false;
- this.menuTab.HorizontalScrollbarSize = 10;
+ this.menuTab.HorizontalScrollbarSize = 8;
this.menuTab.Location = new System.Drawing.Point(4, 38);
+ this.menuTab.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.menuTab.Name = "menuTab";
- this.menuTab.Size = new System.Drawing.Size(1360, 790);
+ this.menuTab.Size = new System.Drawing.Size(1208, 624);
this.menuTab.TabIndex = 0;
this.menuTab.Text = "Edit Menus";
this.menuTab.VerticalScrollbarBarColor = true;
this.menuTab.VerticalScrollbarHighlightOnWheel = false;
- this.menuTab.VerticalScrollbarSize = 10;
+ this.menuTab.VerticalScrollbarSize = 9;
+ //
+ // menuSelectionBox
+ //
+ this.menuSelectionBox.FormattingEnabled = true;
+ this.menuSelectionBox.Location = new System.Drawing.Point(150, 28);
+ this.menuSelectionBox.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+ this.menuSelectionBox.Name = "menuSelectionBox";
+ this.menuSelectionBox.Size = new System.Drawing.Size(316, 24);
+ this.menuSelectionBox.TabIndex = 12;
//
// menuListBox
//
@@ -153,7 +164,7 @@ private void InitializeComponent()
| System.Windows.Forms.AnchorStyles.Right)));
this.menuListBox.Font = new System.Drawing.Font("Segoe UI Light", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.menuListBox.FormattingEnabled = true;
- this.menuListBox.ItemHeight = 38;
+ this.menuListBox.ItemHeight = 31;
this.menuListBox.Items.AddRange(new object[] {
"Item1",
"Item1",
@@ -168,10 +179,11 @@ private void InitializeComponent()
"Item3",
"Item3",
"Item3"});
- this.menuListBox.Location = new System.Drawing.Point(8, 69);
+ this.menuListBox.Location = new System.Drawing.Point(7, 55);
+ this.menuListBox.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.menuListBox.Name = "menuListBox";
this.menuListBox.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended;
- this.menuListBox.Size = new System.Drawing.Size(696, 650);
+ this.menuListBox.Size = new System.Drawing.Size(619, 500);
this.menuListBox.TabIndex = 11;
//
// menuSaveButton
@@ -179,9 +191,10 @@ private void InitializeComponent()
this.menuSaveButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.menuSaveButton.FontSize = MetroFramework.MetroButtonSize.Tall;
this.menuSaveButton.FontWeight = MetroFramework.MetroButtonWeight.Regular;
- this.menuSaveButton.Location = new System.Drawing.Point(1038, 711);
+ this.menuSaveButton.Location = new System.Drawing.Point(923, 569);
+ this.menuSaveButton.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.menuSaveButton.Name = "menuSaveButton";
- this.menuSaveButton.Size = new System.Drawing.Size(298, 45);
+ this.menuSaveButton.Size = new System.Drawing.Size(265, 36);
this.menuSaveButton.TabIndex = 9;
this.menuSaveButton.Text = "Save";
this.menuSaveButton.UseSelectable = true;
@@ -191,9 +204,10 @@ private void InitializeComponent()
this.menuRevertButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.menuRevertButton.FontSize = MetroFramework.MetroButtonSize.Tall;
this.menuRevertButton.FontWeight = MetroFramework.MetroButtonWeight.Regular;
- this.menuRevertButton.Location = new System.Drawing.Point(741, 712);
+ this.menuRevertButton.Location = new System.Drawing.Point(659, 570);
+ this.menuRevertButton.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.menuRevertButton.Name = "menuRevertButton";
- this.menuRevertButton.Size = new System.Drawing.Size(291, 45);
+ this.menuRevertButton.Size = new System.Drawing.Size(259, 36);
this.menuRevertButton.TabIndex = 8;
this.menuRevertButton.Text = "Revert";
this.menuRevertButton.UseSelectable = true;
@@ -206,19 +220,20 @@ private void InitializeComponent()
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.displayedOnDevices);
this.groupBox1.Font = new System.Drawing.Font("Segoe UI Light", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.groupBox1.Location = new System.Drawing.Point(741, 287);
+ this.groupBox1.Location = new System.Drawing.Point(659, 230);
+ this.groupBox1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.groupBox1.Name = "groupBox1";
- this.groupBox1.Padding = new System.Windows.Forms.Padding(8);
- this.groupBox1.Size = new System.Drawing.Size(595, 418);
+ this.groupBox1.Padding = new System.Windows.Forms.Padding(7, 6, 7, 6);
+ this.groupBox1.Size = new System.Drawing.Size(529, 334);
this.groupBox1.TabIndex = 7;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Options";
//
// label1
//
- this.label1.Location = new System.Drawing.Point(6, 35);
+ this.label1.Location = new System.Drawing.Point(5, 28);
this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(171, 36);
+ this.label1.Size = new System.Drawing.Size(152, 29);
this.label1.TabIndex = 1;
this.label1.Text = "Display Menu On:";
//
@@ -228,16 +243,17 @@ private void InitializeComponent()
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.displayedOnDevices.FormattingEnabled = true;
- this.displayedOnDevices.ItemHeight = 28;
+ this.displayedOnDevices.ItemHeight = 23;
this.displayedOnDevices.Items.AddRange(new object[] {
"Computer1",
"Computer2",
"Computer3",
"Computer4"});
- this.displayedOnDevices.Location = new System.Drawing.Point(183, 35);
+ this.displayedOnDevices.Location = new System.Drawing.Point(163, 28);
+ this.displayedOnDevices.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.displayedOnDevices.Name = "displayedOnDevices";
this.displayedOnDevices.SelectionMode = System.Windows.Forms.SelectionMode.MultiSimple;
- this.displayedOnDevices.Size = new System.Drawing.Size(401, 340);
+ this.displayedOnDevices.Size = new System.Drawing.Size(357, 257);
this.displayedOnDevices.Sorted = true;
this.displayedOnDevices.TabIndex = 0;
//
@@ -249,10 +265,11 @@ private void InitializeComponent()
this.menuGroup1.Controls.Add(this.metroButton2);
this.menuGroup1.Controls.Add(this.metroButton1);
this.menuGroup1.Font = new System.Drawing.Font("Segoe UI Light", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.menuGroup1.Location = new System.Drawing.Point(741, 63);
+ this.menuGroup1.Location = new System.Drawing.Point(659, 50);
+ this.menuGroup1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.menuGroup1.Name = "menuGroup1";
- this.menuGroup1.Padding = new System.Windows.Forms.Padding(8);
- this.menuGroup1.Size = new System.Drawing.Size(595, 218);
+ this.menuGroup1.Padding = new System.Windows.Forms.Padding(7, 6, 7, 6);
+ this.menuGroup1.Size = new System.Drawing.Size(529, 174);
this.menuGroup1.TabIndex = 6;
this.menuGroup1.TabStop = false;
this.menuGroup1.Text = "Edit Menus";
@@ -263,9 +280,10 @@ private void InitializeComponent()
| System.Windows.Forms.AnchorStyles.Right)));
this.metroButton3.FontSize = MetroFramework.MetroButtonSize.Tall;
this.metroButton3.FontWeight = MetroFramework.MetroButtonWeight.Regular;
- this.metroButton3.Location = new System.Drawing.Point(397, 30);
+ this.metroButton3.Location = new System.Drawing.Point(353, 24);
+ this.metroButton3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.metroButton3.Name = "metroButton3";
- this.metroButton3.Size = new System.Drawing.Size(187, 177);
+ this.metroButton3.Size = new System.Drawing.Size(166, 142);
this.metroButton3.TabIndex = 6;
this.metroButton3.Text = "Remove Menu";
this.metroButton3.UseSelectable = true;
@@ -276,9 +294,10 @@ private void InitializeComponent()
| System.Windows.Forms.AnchorStyles.Right)));
this.metroButton2.FontSize = MetroFramework.MetroButtonSize.Tall;
this.metroButton2.FontWeight = MetroFramework.MetroButtonWeight.Regular;
- this.metroButton2.Location = new System.Drawing.Point(204, 30);
+ this.metroButton2.Location = new System.Drawing.Point(181, 24);
+ this.metroButton2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.metroButton2.Name = "metroButton2";
- this.metroButton2.Size = new System.Drawing.Size(187, 177);
+ this.metroButton2.Size = new System.Drawing.Size(166, 142);
this.metroButton2.TabIndex = 5;
this.metroButton2.Text = "Rename Menu";
this.metroButton2.UseSelectable = true;
@@ -289,9 +308,10 @@ private void InitializeComponent()
| System.Windows.Forms.AnchorStyles.Right)));
this.metroButton1.FontSize = MetroFramework.MetroButtonSize.Tall;
this.metroButton1.FontWeight = MetroFramework.MetroButtonWeight.Regular;
- this.metroButton1.Location = new System.Drawing.Point(11, 30);
+ this.metroButton1.Location = new System.Drawing.Point(10, 24);
+ this.metroButton1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.metroButton1.Name = "metroButton1";
- this.metroButton1.Size = new System.Drawing.Size(187, 177);
+ this.metroButton1.Size = new System.Drawing.Size(166, 142);
this.metroButton1.TabIndex = 4;
this.metroButton1.Text = "Add Menu";
this.metroButton1.UseSelectable = true;
@@ -301,9 +321,9 @@ private void InitializeComponent()
this.metroLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.metroLabel1.FontSize = MetroFramework.MetroLabelSize.Tall;
- this.metroLabel1.Location = new System.Drawing.Point(3, 23);
+ this.metroLabel1.Location = new System.Drawing.Point(3, 18);
this.metroLabel1.Name = "metroLabel1";
- this.metroLabel1.Size = new System.Drawing.Size(700, 37);
+ this.metroLabel1.Size = new System.Drawing.Size(622, 30);
this.metroLabel1.TabIndex = 3;
this.metroLabel1.Text = "Select Menu";
this.metroLabel1.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
@@ -318,24 +338,26 @@ private void InitializeComponent()
this.itemsTab.Controls.Add(this.metroLabel2);
this.itemsTab.HorizontalScrollbarBarColor = true;
this.itemsTab.HorizontalScrollbarHighlightOnWheel = false;
- this.itemsTab.HorizontalScrollbarSize = 10;
+ this.itemsTab.HorizontalScrollbarSize = 8;
this.itemsTab.Location = new System.Drawing.Point(4, 38);
+ this.itemsTab.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.itemsTab.Name = "itemsTab";
- this.itemsTab.Size = new System.Drawing.Size(1360, 790);
+ this.itemsTab.Size = new System.Drawing.Size(1208, 624);
this.itemsTab.TabIndex = 1;
this.itemsTab.Text = "Edit Items";
this.itemsTab.VerticalScrollbarBarColor = true;
this.itemsTab.VerticalScrollbarHighlightOnWheel = false;
- this.itemsTab.VerticalScrollbarSize = 10;
+ this.itemsTab.VerticalScrollbarSize = 9;
//
// itemsSaveButton
//
this.itemsSaveButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.itemsSaveButton.FontSize = MetroFramework.MetroButtonSize.Tall;
this.itemsSaveButton.FontWeight = MetroFramework.MetroButtonWeight.Regular;
- this.itemsSaveButton.Location = new System.Drawing.Point(1038, 712);
+ this.itemsSaveButton.Location = new System.Drawing.Point(923, 570);
+ this.itemsSaveButton.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.itemsSaveButton.Name = "itemsSaveButton";
- this.itemsSaveButton.Size = new System.Drawing.Size(298, 45);
+ this.itemsSaveButton.Size = new System.Drawing.Size(265, 36);
this.itemsSaveButton.TabIndex = 11;
this.itemsSaveButton.Text = "Save";
this.itemsSaveButton.UseSelectable = true;
@@ -347,7 +369,7 @@ private void InitializeComponent()
| 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.ItemHeight = 31;
this.menuItemListBox.Items.AddRange(new object[] {
"Item1",
"Item1",
@@ -367,10 +389,11 @@ private void InitializeComponent()
"Item3",
"Item3",
"Item3"});
- this.menuItemListBox.Location = new System.Drawing.Point(7, 69);
+ this.menuItemListBox.Location = new System.Drawing.Point(6, 55);
+ this.menuItemListBox.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.menuItemListBox.Name = "menuItemListBox";
this.menuItemListBox.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended;
- this.menuItemListBox.Size = new System.Drawing.Size(696, 650);
+ this.menuItemListBox.Size = new System.Drawing.Size(619, 500);
this.menuItemListBox.TabIndex = 8;
//
// itemsRevertButton
@@ -378,9 +401,10 @@ private void InitializeComponent()
this.itemsRevertButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.itemsRevertButton.FontSize = MetroFramework.MetroButtonSize.Tall;
this.itemsRevertButton.FontWeight = MetroFramework.MetroButtonWeight.Regular;
- this.itemsRevertButton.Location = new System.Drawing.Point(741, 713);
+ this.itemsRevertButton.Location = new System.Drawing.Point(659, 570);
+ this.itemsRevertButton.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.itemsRevertButton.Name = "itemsRevertButton";
- this.itemsRevertButton.Size = new System.Drawing.Size(291, 45);
+ this.itemsRevertButton.Size = new System.Drawing.Size(259, 36);
this.itemsRevertButton.TabIndex = 10;
this.itemsRevertButton.Text = "Revert";
this.itemsRevertButton.UseSelectable = true;
@@ -399,10 +423,11 @@ private void InitializeComponent()
this.groupBox2.Controls.Add(this.label2);
this.groupBox2.Controls.Add(this.categoryListBox);
this.groupBox2.Font = new System.Drawing.Font("Segoe UI Light", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.groupBox2.Location = new System.Drawing.Point(741, 237);
+ this.groupBox2.Location = new System.Drawing.Point(659, 190);
+ this.groupBox2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.groupBox2.Name = "groupBox2";
- this.groupBox2.Padding = new System.Windows.Forms.Padding(8);
- this.groupBox2.Size = new System.Drawing.Size(595, 470);
+ this.groupBox2.Padding = new System.Windows.Forms.Padding(7, 6, 7, 6);
+ this.groupBox2.Size = new System.Drawing.Size(529, 376);
this.groupBox2.TabIndex = 12;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "Options";
@@ -412,9 +437,10 @@ private void InitializeComponent()
this.itemPrice.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.itemPrice.DecimalPlaces = 2;
- this.itemPrice.Location = new System.Drawing.Point(166, 187);
+ this.itemPrice.Location = new System.Drawing.Point(148, 150);
+ this.itemPrice.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.itemPrice.Name = "itemPrice";
- this.itemPrice.Size = new System.Drawing.Size(125, 34);
+ this.itemPrice.Size = new System.Drawing.Size(111, 30);
this.itemPrice.TabIndex = 9;
//
// itemDescriptionTextbox
@@ -425,9 +451,10 @@ private void InitializeComponent()
//
//
this.itemDescriptionTextbox.CustomButton.Image = null;
- this.itemDescriptionTextbox.CustomButton.Location = new System.Drawing.Point(278, 1);
+ this.itemDescriptionTextbox.CustomButton.Location = new System.Drawing.Point(260, 1);
+ this.itemDescriptionTextbox.CustomButton.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.itemDescriptionTextbox.CustomButton.Name = "";
- this.itemDescriptionTextbox.CustomButton.Size = new System.Drawing.Size(139, 139);
+ this.itemDescriptionTextbox.CustomButton.Size = new System.Drawing.Size(111, 111);
this.itemDescriptionTextbox.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
this.itemDescriptionTextbox.CustomButton.TabIndex = 1;
this.itemDescriptionTextbox.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
@@ -436,7 +463,8 @@ private void InitializeComponent()
this.itemDescriptionTextbox.FontSize = MetroFramework.MetroTextBoxSize.Medium;
this.itemDescriptionTextbox.Lines = new string[] {
"metroTextBox1"};
- this.itemDescriptionTextbox.Location = new System.Drawing.Point(166, 35);
+ this.itemDescriptionTextbox.Location = new System.Drawing.Point(148, 28);
+ this.itemDescriptionTextbox.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.itemDescriptionTextbox.MaxLength = 32767;
this.itemDescriptionTextbox.Multiline = true;
this.itemDescriptionTextbox.Name = "itemDescriptionTextbox";
@@ -446,7 +474,7 @@ private void InitializeComponent()
this.itemDescriptionTextbox.SelectionLength = 0;
this.itemDescriptionTextbox.SelectionStart = 0;
this.itemDescriptionTextbox.ShortcutsEnabled = true;
- this.itemDescriptionTextbox.Size = new System.Drawing.Size(418, 141);
+ this.itemDescriptionTextbox.Size = new System.Drawing.Size(372, 113);
this.itemDescriptionTextbox.TabIndex = 6;
this.itemDescriptionTextbox.Text = "metroTextBox1";
this.itemDescriptionTextbox.UseSelectable = true;
@@ -455,17 +483,17 @@ private void InitializeComponent()
//
// label5
//
- this.label5.Location = new System.Drawing.Point(6, 183);
+ this.label5.Location = new System.Drawing.Point(5, 146);
this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(154, 36);
+ this.label5.Size = new System.Drawing.Size(137, 29);
this.label5.TabIndex = 5;
this.label5.Text = "Price:";
//
// label4
//
- this.label4.Location = new System.Drawing.Point(6, 35);
+ this.label4.Location = new System.Drawing.Point(5, 28);
this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(154, 36);
+ this.label4.Size = new System.Drawing.Size(137, 29);
this.label4.TabIndex = 4;
this.label4.Text = "Description: ";
//
@@ -474,29 +502,30 @@ private void InitializeComponent()
this.printingListBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.printingListBox.FormattingEnabled = true;
- this.printingListBox.ItemHeight = 28;
+ this.printingListBox.ItemHeight = 23;
this.printingListBox.Items.AddRange(new object[] {
"Cold",
"Hot"});
- this.printingListBox.Location = new System.Drawing.Point(166, 399);
+ this.printingListBox.Location = new System.Drawing.Point(148, 319);
+ this.printingListBox.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.printingListBox.Name = "printingListBox";
- this.printingListBox.Size = new System.Drawing.Size(418, 32);
+ this.printingListBox.Size = new System.Drawing.Size(372, 4);
this.printingListBox.Sorted = true;
this.printingListBox.TabIndex = 3;
//
// label3
//
- this.label3.Location = new System.Drawing.Point(6, 399);
+ this.label3.Location = new System.Drawing.Point(5, 319);
this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(149, 36);
+ this.label3.Size = new System.Drawing.Size(132, 29);
this.label3.TabIndex = 2;
this.label3.Text = "Printing Station:";
//
// label2
//
- this.label2.Location = new System.Drawing.Point(6, 249);
+ this.label2.Location = new System.Drawing.Point(5, 199);
this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(154, 36);
+ this.label2.Size = new System.Drawing.Size(137, 29);
this.label2.TabIndex = 1;
this.label2.Text = "Category:";
//
@@ -505,17 +534,18 @@ private void InitializeComponent()
this.categoryListBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.categoryListBox.FormattingEnabled = true;
- this.categoryListBox.ItemHeight = 28;
+ this.categoryListBox.ItemHeight = 23;
this.categoryListBox.Items.AddRange(new object[] {
"Appitizer",
"Dessert",
"Drink",
"Entre",
"Other"});
- this.categoryListBox.Location = new System.Drawing.Point(166, 236);
+ this.categoryListBox.Location = new System.Drawing.Point(148, 189);
+ this.categoryListBox.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.categoryListBox.Name = "categoryListBox";
this.categoryListBox.SelectionMode = System.Windows.Forms.SelectionMode.MultiSimple;
- this.categoryListBox.Size = new System.Drawing.Size(418, 116);
+ this.categoryListBox.Size = new System.Drawing.Size(372, 73);
this.categoryListBox.Sorted = true;
this.categoryListBox.TabIndex = 0;
//
@@ -527,10 +557,11 @@ private void InitializeComponent()
this.groupBox3.Controls.Add(this.renameItemButton);
this.groupBox3.Controls.Add(this.addItemButton);
this.groupBox3.Font = new System.Drawing.Font("Segoe UI Light", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.groupBox3.Location = new System.Drawing.Point(741, 63);
+ this.groupBox3.Location = new System.Drawing.Point(659, 50);
+ this.groupBox3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.groupBox3.Name = "groupBox3";
- this.groupBox3.Padding = new System.Windows.Forms.Padding(8);
- this.groupBox3.Size = new System.Drawing.Size(595, 168);
+ this.groupBox3.Padding = new System.Windows.Forms.Padding(7, 6, 7, 6);
+ this.groupBox3.Size = new System.Drawing.Size(529, 134);
this.groupBox3.TabIndex = 11;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "Edit Items";
@@ -541,9 +572,10 @@ private void InitializeComponent()
| System.Windows.Forms.AnchorStyles.Right)));
this.removeItemButton.FontSize = MetroFramework.MetroButtonSize.Tall;
this.removeItemButton.FontWeight = MetroFramework.MetroButtonWeight.Regular;
- this.removeItemButton.Location = new System.Drawing.Point(397, 30);
+ this.removeItemButton.Location = new System.Drawing.Point(353, 24);
+ this.removeItemButton.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.removeItemButton.Name = "removeItemButton";
- this.removeItemButton.Size = new System.Drawing.Size(187, 127);
+ this.removeItemButton.Size = new System.Drawing.Size(166, 102);
this.removeItemButton.TabIndex = 6;
this.removeItemButton.Text = "Remove Item(s)";
this.removeItemButton.UseSelectable = true;
@@ -554,9 +586,10 @@ private void InitializeComponent()
| System.Windows.Forms.AnchorStyles.Right)));
this.renameItemButton.FontSize = MetroFramework.MetroButtonSize.Tall;
this.renameItemButton.FontWeight = MetroFramework.MetroButtonWeight.Regular;
- this.renameItemButton.Location = new System.Drawing.Point(204, 30);
+ this.renameItemButton.Location = new System.Drawing.Point(181, 24);
+ this.renameItemButton.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.renameItemButton.Name = "renameItemButton";
- this.renameItemButton.Size = new System.Drawing.Size(187, 127);
+ this.renameItemButton.Size = new System.Drawing.Size(166, 102);
this.renameItemButton.TabIndex = 5;
this.renameItemButton.Text = "Rename Item";
this.renameItemButton.UseSelectable = true;
@@ -567,9 +600,10 @@ private void InitializeComponent()
| System.Windows.Forms.AnchorStyles.Right)));
this.addItemButton.FontSize = MetroFramework.MetroButtonSize.Tall;
this.addItemButton.FontWeight = MetroFramework.MetroButtonWeight.Regular;
- this.addItemButton.Location = new System.Drawing.Point(11, 30);
+ this.addItemButton.Location = new System.Drawing.Point(10, 24);
+ this.addItemButton.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.addItemButton.Name = "addItemButton";
- this.addItemButton.Size = new System.Drawing.Size(187, 127);
+ this.addItemButton.Size = new System.Drawing.Size(166, 102);
this.addItemButton.TabIndex = 4;
this.addItemButton.Text = "Add Item(s)";
this.addItemButton.UseSelectable = true;
@@ -579,9 +613,9 @@ private void InitializeComponent()
this.metroLabel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.metroLabel2.FontSize = MetroFramework.MetroLabelSize.Tall;
- this.metroLabel2.Location = new System.Drawing.Point(3, 23);
+ this.metroLabel2.Location = new System.Drawing.Point(3, 18);
this.metroLabel2.Name = "metroLabel2";
- this.metroLabel2.Size = new System.Drawing.Size(700, 37);
+ this.metroLabel2.Size = new System.Drawing.Size(622, 30);
this.metroLabel2.TabIndex = 10;
this.metroLabel2.Text = "Select Items";
this.metroLabel2.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
@@ -596,24 +630,26 @@ private void InitializeComponent()
this.employeeTab.Controls.Add(this.metroLabel4);
this.employeeTab.HorizontalScrollbarBarColor = true;
this.employeeTab.HorizontalScrollbarHighlightOnWheel = false;
- this.employeeTab.HorizontalScrollbarSize = 10;
+ this.employeeTab.HorizontalScrollbarSize = 8;
this.employeeTab.Location = new System.Drawing.Point(4, 38);
+ this.employeeTab.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.employeeTab.Name = "employeeTab";
- this.employeeTab.Size = new System.Drawing.Size(1360, 790);
+ this.employeeTab.Size = new System.Drawing.Size(1208, 624);
this.employeeTab.TabIndex = 2;
this.employeeTab.Text = "Edit Employees";
this.employeeTab.VerticalScrollbarBarColor = true;
this.employeeTab.VerticalScrollbarHighlightOnWheel = false;
- this.employeeTab.VerticalScrollbarSize = 10;
+ this.employeeTab.VerticalScrollbarSize = 9;
//
// metroButton4
//
this.metroButton4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.metroButton4.FontSize = MetroFramework.MetroButtonSize.Tall;
this.metroButton4.FontWeight = MetroFramework.MetroButtonWeight.Regular;
- this.metroButton4.Location = new System.Drawing.Point(1038, 711);
+ this.metroButton4.Location = new System.Drawing.Point(923, 569);
+ this.metroButton4.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.metroButton4.Name = "metroButton4";
- this.metroButton4.Size = new System.Drawing.Size(298, 45);
+ this.metroButton4.Size = new System.Drawing.Size(265, 36);
this.metroButton4.TabIndex = 21;
this.metroButton4.Text = "Save";
this.metroButton4.UseSelectable = true;
@@ -623,9 +659,10 @@ private void InitializeComponent()
this.metroButton5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.metroButton5.FontSize = MetroFramework.MetroButtonSize.Tall;
this.metroButton5.FontWeight = MetroFramework.MetroButtonWeight.Regular;
- this.metroButton5.Location = new System.Drawing.Point(741, 712);
+ this.metroButton5.Location = new System.Drawing.Point(659, 570);
+ this.metroButton5.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.metroButton5.Name = "metroButton5";
- this.metroButton5.Size = new System.Drawing.Size(291, 45);
+ this.metroButton5.Size = new System.Drawing.Size(259, 36);
this.metroButton5.TabIndex = 20;
this.metroButton5.Text = "Revert";
this.metroButton5.UseSelectable = true;
@@ -637,7 +674,7 @@ private void InitializeComponent()
| System.Windows.Forms.AnchorStyles.Right)));
this.employeeListBox.Font = new System.Drawing.Font("Segoe UI Light", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.employeeListBox.FormattingEnabled = true;
- this.employeeListBox.ItemHeight = 38;
+ this.employeeListBox.ItemHeight = 31;
this.employeeListBox.Items.AddRange(new object[] {
"Item1",
"Item1",
@@ -657,10 +694,11 @@ private void InitializeComponent()
"Item3",
"Item3",
"Item3"});
- this.employeeListBox.Location = new System.Drawing.Point(7, 69);
+ this.employeeListBox.Location = new System.Drawing.Point(6, 55);
+ this.employeeListBox.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.employeeListBox.Name = "employeeListBox";
this.employeeListBox.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended;
- this.employeeListBox.Size = new System.Drawing.Size(696, 650);
+ this.employeeListBox.Size = new System.Drawing.Size(619, 500);
this.employeeListBox.TabIndex = 16;
//
// groupBox6
@@ -679,10 +717,11 @@ private void InitializeComponent()
this.groupBox6.Controls.Add(this.label7);
this.groupBox6.Controls.Add(this.listBox2);
this.groupBox6.Font = new System.Drawing.Font("Segoe UI Light", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.groupBox6.Location = new System.Drawing.Point(741, 287);
+ this.groupBox6.Location = new System.Drawing.Point(659, 230);
+ this.groupBox6.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.groupBox6.Name = "groupBox6";
- this.groupBox6.Padding = new System.Windows.Forms.Padding(8);
- this.groupBox6.Size = new System.Drawing.Size(595, 418);
+ this.groupBox6.Padding = new System.Windows.Forms.Padding(7, 6, 7, 6);
+ this.groupBox6.Size = new System.Drawing.Size(529, 334);
this.groupBox6.TabIndex = 19;
this.groupBox6.TabStop = false;
this.groupBox6.Text = "Options";
@@ -695,9 +734,10 @@ private void InitializeComponent()
//
//
this.lastNameTextBox.CustomButton.Image = null;
- this.lastNameTextBox.CustomButton.Location = new System.Drawing.Point(384, 2);
+ this.lastNameTextBox.CustomButton.Location = new System.Drawing.Point(344, 1);
+ this.lastNameTextBox.CustomButton.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lastNameTextBox.CustomButton.Name = "";
- this.lastNameTextBox.CustomButton.Size = new System.Drawing.Size(31, 31);
+ this.lastNameTextBox.CustomButton.Size = new System.Drawing.Size(27, 27);
this.lastNameTextBox.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
this.lastNameTextBox.CustomButton.TabIndex = 1;
this.lastNameTextBox.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
@@ -706,7 +746,8 @@ private void InitializeComponent()
this.lastNameTextBox.FontSize = MetroFramework.MetroTextBoxSize.Medium;
this.lastNameTextBox.Lines = new string[] {
"metroTextBox2"};
- this.lastNameTextBox.Location = new System.Drawing.Point(166, 131);
+ this.lastNameTextBox.Location = new System.Drawing.Point(148, 105);
+ this.lastNameTextBox.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lastNameTextBox.MaxLength = 32767;
this.lastNameTextBox.Multiline = true;
this.lastNameTextBox.Name = "lastNameTextBox";
@@ -716,7 +757,7 @@ private void InitializeComponent()
this.lastNameTextBox.SelectionLength = 0;
this.lastNameTextBox.SelectionStart = 0;
this.lastNameTextBox.ShortcutsEnabled = true;
- this.lastNameTextBox.Size = new System.Drawing.Size(418, 36);
+ this.lastNameTextBox.Size = new System.Drawing.Size(372, 29);
this.lastNameTextBox.TabIndex = 17;
this.lastNameTextBox.Text = "metroTextBox2";
this.lastNameTextBox.UseSelectable = true;
@@ -725,9 +766,9 @@ private void InitializeComponent()
//
// label11
//
- this.label11.Location = new System.Drawing.Point(6, 131);
+ this.label11.Location = new System.Drawing.Point(5, 105);
this.label11.Name = "label11";
- this.label11.Size = new System.Drawing.Size(154, 36);
+ this.label11.Size = new System.Drawing.Size(137, 29);
this.label11.TabIndex = 16;
this.label11.Text = "Last Name:";
//
@@ -739,9 +780,10 @@ private void InitializeComponent()
//
//
this.firstNameTextBox.CustomButton.Image = null;
- this.firstNameTextBox.CustomButton.Location = new System.Drawing.Point(384, 2);
+ this.firstNameTextBox.CustomButton.Location = new System.Drawing.Point(344, 1);
+ this.firstNameTextBox.CustomButton.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.firstNameTextBox.CustomButton.Name = "";
- this.firstNameTextBox.CustomButton.Size = new System.Drawing.Size(31, 31);
+ this.firstNameTextBox.CustomButton.Size = new System.Drawing.Size(27, 27);
this.firstNameTextBox.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
this.firstNameTextBox.CustomButton.TabIndex = 1;
this.firstNameTextBox.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
@@ -750,7 +792,8 @@ private void InitializeComponent()
this.firstNameTextBox.FontSize = MetroFramework.MetroTextBoxSize.Medium;
this.firstNameTextBox.Lines = new string[] {
"metroTextBox1"};
- this.firstNameTextBox.Location = new System.Drawing.Point(166, 83);
+ this.firstNameTextBox.Location = new System.Drawing.Point(148, 66);
+ this.firstNameTextBox.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.firstNameTextBox.MaxLength = 32767;
this.firstNameTextBox.Multiline = true;
this.firstNameTextBox.Name = "firstNameTextBox";
@@ -760,7 +803,7 @@ private void InitializeComponent()
this.firstNameTextBox.SelectionLength = 0;
this.firstNameTextBox.SelectionStart = 0;
this.firstNameTextBox.ShortcutsEnabled = true;
- this.firstNameTextBox.Size = new System.Drawing.Size(418, 36);
+ this.firstNameTextBox.Size = new System.Drawing.Size(372, 29);
this.firstNameTextBox.TabIndex = 15;
this.firstNameTextBox.Text = "metroTextBox1";
this.firstNameTextBox.UseSelectable = true;
@@ -769,9 +812,9 @@ private void InitializeComponent()
//
// label10
//
- this.label10.Location = new System.Drawing.Point(6, 83);
+ this.label10.Location = new System.Drawing.Point(5, 66);
this.label10.Name = "label10";
- this.label10.Size = new System.Drawing.Size(154, 36);
+ this.label10.Size = new System.Drawing.Size(137, 29);
this.label10.TabIndex = 14;
this.label10.Text = "First Name:";
//
@@ -779,14 +822,15 @@ private void InitializeComponent()
//
this.pinNumber.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
- this.pinNumber.Location = new System.Drawing.Point(166, 187);
+ this.pinNumber.Location = new System.Drawing.Point(148, 150);
+ this.pinNumber.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.pinNumber.Maximum = new decimal(new int[] {
9999,
0,
0,
0});
this.pinNumber.Name = "pinNumber";
- this.pinNumber.Size = new System.Drawing.Size(125, 34);
+ this.pinNumber.Size = new System.Drawing.Size(111, 30);
this.pinNumber.TabIndex = 13;
//
// usernameTextBox
@@ -797,9 +841,10 @@ private void InitializeComponent()
//
//
this.usernameTextBox.CustomButton.Image = null;
- this.usernameTextBox.CustomButton.Location = new System.Drawing.Point(384, 2);
+ this.usernameTextBox.CustomButton.Location = new System.Drawing.Point(344, 1);
+ this.usernameTextBox.CustomButton.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.usernameTextBox.CustomButton.Name = "";
- this.usernameTextBox.CustomButton.Size = new System.Drawing.Size(31, 31);
+ this.usernameTextBox.CustomButton.Size = new System.Drawing.Size(27, 27);
this.usernameTextBox.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
this.usernameTextBox.CustomButton.TabIndex = 1;
this.usernameTextBox.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
@@ -808,7 +853,8 @@ private void InitializeComponent()
this.usernameTextBox.FontSize = MetroFramework.MetroTextBoxSize.Medium;
this.usernameTextBox.Lines = new string[] {
"metroTextBox1"};
- this.usernameTextBox.Location = new System.Drawing.Point(166, 35);
+ this.usernameTextBox.Location = new System.Drawing.Point(148, 28);
+ this.usernameTextBox.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.usernameTextBox.MaxLength = 32767;
this.usernameTextBox.Multiline = true;
this.usernameTextBox.Name = "usernameTextBox";
@@ -818,7 +864,7 @@ private void InitializeComponent()
this.usernameTextBox.SelectionLength = 0;
this.usernameTextBox.SelectionStart = 0;
this.usernameTextBox.ShortcutsEnabled = true;
- this.usernameTextBox.Size = new System.Drawing.Size(418, 36);
+ this.usernameTextBox.Size = new System.Drawing.Size(372, 29);
this.usernameTextBox.TabIndex = 12;
this.usernameTextBox.Text = "metroTextBox1";
this.usernameTextBox.UseSelectable = true;
@@ -827,25 +873,25 @@ private void InitializeComponent()
//
// pin
//
- this.pin.Location = new System.Drawing.Point(6, 183);
+ this.pin.Location = new System.Drawing.Point(5, 146);
this.pin.Name = "pin";
- this.pin.Size = new System.Drawing.Size(154, 36);
+ this.pin.Size = new System.Drawing.Size(137, 29);
this.pin.TabIndex = 11;
this.pin.Text = "Pin:";
//
// label9
//
- this.label9.Location = new System.Drawing.Point(6, 35);
+ this.label9.Location = new System.Drawing.Point(5, 28);
this.label9.Name = "label9";
- this.label9.Size = new System.Drawing.Size(154, 36);
+ this.label9.Size = new System.Drawing.Size(137, 29);
this.label9.TabIndex = 10;
this.label9.Text = "Username:";
//
// label7
//
- this.label7.Location = new System.Drawing.Point(6, 237);
+ this.label7.Location = new System.Drawing.Point(5, 190);
this.label7.Name = "label7";
- this.label7.Size = new System.Drawing.Size(154, 36);
+ this.label7.Size = new System.Drawing.Size(137, 29);
this.label7.TabIndex = 1;
this.label7.Text = "Roles:";
//
@@ -855,16 +901,17 @@ private void InitializeComponent()
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.listBox2.FormattingEnabled = true;
- this.listBox2.ItemHeight = 28;
+ this.listBox2.ItemHeight = 23;
this.listBox2.Items.AddRange(new object[] {
"Admin",
"Chef",
"Host",
"Waiter"});
- this.listBox2.Location = new System.Drawing.Point(166, 237);
+ this.listBox2.Location = new System.Drawing.Point(148, 190);
+ this.listBox2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.listBox2.Name = "listBox2";
this.listBox2.SelectionMode = System.Windows.Forms.SelectionMode.MultiSimple;
- this.listBox2.Size = new System.Drawing.Size(418, 88);
+ this.listBox2.Size = new System.Drawing.Size(372, 50);
this.listBox2.TabIndex = 0;
//
// groupBox7
@@ -874,10 +921,11 @@ private void InitializeComponent()
this.groupBox7.Controls.Add(this.employeeRemoveButton);
this.groupBox7.Controls.Add(this.employeeAddButton);
this.groupBox7.Font = new System.Drawing.Font("Segoe UI Light", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.groupBox7.Location = new System.Drawing.Point(741, 63);
+ this.groupBox7.Location = new System.Drawing.Point(659, 50);
+ this.groupBox7.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.groupBox7.Name = "groupBox7";
- this.groupBox7.Padding = new System.Windows.Forms.Padding(8);
- this.groupBox7.Size = new System.Drawing.Size(595, 218);
+ this.groupBox7.Padding = new System.Windows.Forms.Padding(7, 6, 7, 6);
+ this.groupBox7.Size = new System.Drawing.Size(529, 174);
this.groupBox7.TabIndex = 18;
this.groupBox7.TabStop = false;
this.groupBox7.Text = "Edit Employees";
@@ -888,9 +936,10 @@ private void InitializeComponent()
| System.Windows.Forms.AnchorStyles.Right)));
this.employeeRemoveButton.FontSize = MetroFramework.MetroButtonSize.Tall;
this.employeeRemoveButton.FontWeight = MetroFramework.MetroButtonWeight.Regular;
- this.employeeRemoveButton.Location = new System.Drawing.Point(297, 30);
+ this.employeeRemoveButton.Location = new System.Drawing.Point(264, 24);
+ this.employeeRemoveButton.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.employeeRemoveButton.Name = "employeeRemoveButton";
- this.employeeRemoveButton.Size = new System.Drawing.Size(287, 177);
+ this.employeeRemoveButton.Size = new System.Drawing.Size(255, 142);
this.employeeRemoveButton.TabIndex = 6;
this.employeeRemoveButton.Text = "Remove Employee";
this.employeeRemoveButton.UseSelectable = true;
@@ -901,9 +950,10 @@ private void InitializeComponent()
| System.Windows.Forms.AnchorStyles.Right)));
this.employeeAddButton.FontSize = MetroFramework.MetroButtonSize.Tall;
this.employeeAddButton.FontWeight = MetroFramework.MetroButtonWeight.Regular;
- this.employeeAddButton.Location = new System.Drawing.Point(11, 30);
+ this.employeeAddButton.Location = new System.Drawing.Point(10, 24);
+ this.employeeAddButton.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.employeeAddButton.Name = "employeeAddButton";
- this.employeeAddButton.Size = new System.Drawing.Size(280, 177);
+ this.employeeAddButton.Size = new System.Drawing.Size(249, 142);
this.employeeAddButton.TabIndex = 4;
this.employeeAddButton.Text = "Add Employee";
this.employeeAddButton.UseSelectable = true;
@@ -913,9 +963,9 @@ private void InitializeComponent()
this.metroLabel4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.metroLabel4.FontSize = MetroFramework.MetroLabelSize.Tall;
- this.metroLabel4.Location = new System.Drawing.Point(3, 23);
+ this.metroLabel4.Location = new System.Drawing.Point(3, 18);
this.metroLabel4.Name = "metroLabel4";
- this.metroLabel4.Size = new System.Drawing.Size(700, 37);
+ this.metroLabel4.Size = new System.Drawing.Size(622, 30);
this.metroLabel4.TabIndex = 17;
this.metroLabel4.Text = "Select Employee";
this.metroLabel4.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
@@ -930,24 +980,26 @@ private void InitializeComponent()
this.stationTab.Controls.Add(this.metroLabel3);
this.stationTab.HorizontalScrollbarBarColor = true;
this.stationTab.HorizontalScrollbarHighlightOnWheel = false;
- this.stationTab.HorizontalScrollbarSize = 10;
+ this.stationTab.HorizontalScrollbarSize = 8;
this.stationTab.Location = new System.Drawing.Point(4, 38);
+ this.stationTab.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.stationTab.Name = "stationTab";
- this.stationTab.Size = new System.Drawing.Size(1360, 790);
+ this.stationTab.Size = new System.Drawing.Size(1208, 624);
this.stationTab.TabIndex = 3;
this.stationTab.Text = "Edit Stations";
this.stationTab.VerticalScrollbarBarColor = true;
this.stationTab.VerticalScrollbarHighlightOnWheel = false;
- this.stationTab.VerticalScrollbarSize = 10;
+ this.stationTab.VerticalScrollbarSize = 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.Location = new System.Drawing.Point(923, 569);
+ this.stationSaveButton.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.stationSaveButton.Name = "stationSaveButton";
- this.stationSaveButton.Size = new System.Drawing.Size(298, 45);
+ this.stationSaveButton.Size = new System.Drawing.Size(265, 36);
this.stationSaveButton.TabIndex = 15;
this.stationSaveButton.Text = "Save";
this.stationSaveButton.UseSelectable = true;
@@ -957,9 +1009,10 @@ private void InitializeComponent()
this.stationRevertButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.stationRevertButton.FontSize = MetroFramework.MetroButtonSize.Tall;
this.stationRevertButton.FontWeight = MetroFramework.MetroButtonWeight.Regular;
- this.stationRevertButton.Location = new System.Drawing.Point(741, 712);
+ this.stationRevertButton.Location = new System.Drawing.Point(659, 570);
+ this.stationRevertButton.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.stationRevertButton.Name = "stationRevertButton";
- this.stationRevertButton.Size = new System.Drawing.Size(291, 45);
+ this.stationRevertButton.Size = new System.Drawing.Size(259, 36);
this.stationRevertButton.TabIndex = 14;
this.stationRevertButton.Text = "Revert";
this.stationRevertButton.UseSelectable = true;
@@ -971,7 +1024,7 @@ private void InitializeComponent()
| System.Windows.Forms.AnchorStyles.Right)));
this.stationListBox.Font = new System.Drawing.Font("Segoe UI Light", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.stationListBox.FormattingEnabled = true;
- this.stationListBox.ItemHeight = 38;
+ this.stationListBox.ItemHeight = 31;
this.stationListBox.Items.AddRange(new object[] {
"Item1",
"Item1",
@@ -991,10 +1044,11 @@ private void InitializeComponent()
"Item3",
"Item3",
"Item3"});
- this.stationListBox.Location = new System.Drawing.Point(7, 69);
+ this.stationListBox.Location = new System.Drawing.Point(6, 55);
+ this.stationListBox.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.stationListBox.Name = "stationListBox";
this.stationListBox.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended;
- this.stationListBox.Size = new System.Drawing.Size(696, 650);
+ this.stationListBox.Size = new System.Drawing.Size(619, 500);
this.stationListBox.TabIndex = 10;
//
// groupBox4
@@ -1005,19 +1059,20 @@ private void InitializeComponent()
this.groupBox4.Controls.Add(this.label6);
this.groupBox4.Controls.Add(this.stationTypeListBox);
this.groupBox4.Font = new System.Drawing.Font("Segoe UI Light", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.groupBox4.Location = new System.Drawing.Point(741, 287);
+ this.groupBox4.Location = new System.Drawing.Point(659, 230);
+ this.groupBox4.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.groupBox4.Name = "groupBox4";
- this.groupBox4.Padding = new System.Windows.Forms.Padding(8);
- this.groupBox4.Size = new System.Drawing.Size(595, 418);
+ this.groupBox4.Padding = new System.Windows.Forms.Padding(7, 6, 7, 6);
+ this.groupBox4.Size = new System.Drawing.Size(529, 334);
this.groupBox4.TabIndex = 13;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "Options";
//
// label6
//
- this.label6.Location = new System.Drawing.Point(6, 35);
+ this.label6.Location = new System.Drawing.Point(5, 28);
this.label6.Name = "label6";
- this.label6.Size = new System.Drawing.Size(171, 36);
+ this.label6.Size = new System.Drawing.Size(152, 29);
this.label6.TabIndex = 1;
this.label6.Text = "Station Type:";
//
@@ -1027,15 +1082,16 @@ private void InitializeComponent()
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.stationTypeListBox.FormattingEnabled = true;
- this.stationTypeListBox.ItemHeight = 28;
+ this.stationTypeListBox.ItemHeight = 23;
this.stationTypeListBox.Items.AddRange(new object[] {
"Admin Station",
"Chef Station",
"Host Station",
"Waiter Station"});
- this.stationTypeListBox.Location = new System.Drawing.Point(183, 35);
+ this.stationTypeListBox.Location = new System.Drawing.Point(163, 28);
+ this.stationTypeListBox.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.stationTypeListBox.Name = "stationTypeListBox";
- this.stationTypeListBox.Size = new System.Drawing.Size(401, 340);
+ this.stationTypeListBox.Size = new System.Drawing.Size(357, 257);
this.stationTypeListBox.Sorted = true;
this.stationTypeListBox.TabIndex = 0;
//
@@ -1047,10 +1103,11 @@ private void InitializeComponent()
this.groupBox5.Controls.Add(this.stationRenameButton);
this.groupBox5.Controls.Add(this.stationAddButton);
this.groupBox5.Font = new System.Drawing.Font("Segoe UI Light", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.groupBox5.Location = new System.Drawing.Point(741, 63);
+ this.groupBox5.Location = new System.Drawing.Point(659, 50);
+ this.groupBox5.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.groupBox5.Name = "groupBox5";
- this.groupBox5.Padding = new System.Windows.Forms.Padding(8);
- this.groupBox5.Size = new System.Drawing.Size(595, 218);
+ this.groupBox5.Padding = new System.Windows.Forms.Padding(7, 6, 7, 6);
+ this.groupBox5.Size = new System.Drawing.Size(529, 174);
this.groupBox5.TabIndex = 12;
this.groupBox5.TabStop = false;
this.groupBox5.Text = "Edit Stations";
@@ -1061,9 +1118,10 @@ private void InitializeComponent()
| System.Windows.Forms.AnchorStyles.Right)));
this.stationRemoveButton.FontSize = MetroFramework.MetroButtonSize.Tall;
this.stationRemoveButton.FontWeight = MetroFramework.MetroButtonWeight.Regular;
- this.stationRemoveButton.Location = new System.Drawing.Point(397, 30);
+ this.stationRemoveButton.Location = new System.Drawing.Point(353, 24);
+ this.stationRemoveButton.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.stationRemoveButton.Name = "stationRemoveButton";
- this.stationRemoveButton.Size = new System.Drawing.Size(187, 177);
+ this.stationRemoveButton.Size = new System.Drawing.Size(166, 142);
this.stationRemoveButton.TabIndex = 6;
this.stationRemoveButton.Text = "Remove Station";
this.stationRemoveButton.UseSelectable = true;
@@ -1074,9 +1132,10 @@ private void InitializeComponent()
| System.Windows.Forms.AnchorStyles.Right)));
this.stationRenameButton.FontSize = MetroFramework.MetroButtonSize.Tall;
this.stationRenameButton.FontWeight = MetroFramework.MetroButtonWeight.Regular;
- this.stationRenameButton.Location = new System.Drawing.Point(204, 30);
+ this.stationRenameButton.Location = new System.Drawing.Point(181, 24);
+ this.stationRenameButton.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.stationRenameButton.Name = "stationRenameButton";
- this.stationRenameButton.Size = new System.Drawing.Size(187, 177);
+ this.stationRenameButton.Size = new System.Drawing.Size(166, 142);
this.stationRenameButton.TabIndex = 5;
this.stationRenameButton.Text = "Rename Station";
this.stationRenameButton.UseSelectable = true;
@@ -1087,9 +1146,10 @@ private void InitializeComponent()
| System.Windows.Forms.AnchorStyles.Right)));
this.stationAddButton.FontSize = MetroFramework.MetroButtonSize.Tall;
this.stationAddButton.FontWeight = MetroFramework.MetroButtonWeight.Regular;
- this.stationAddButton.Location = new System.Drawing.Point(11, 30);
+ this.stationAddButton.Location = new System.Drawing.Point(10, 24);
+ this.stationAddButton.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.stationAddButton.Name = "stationAddButton";
- this.stationAddButton.Size = new System.Drawing.Size(187, 177);
+ this.stationAddButton.Size = new System.Drawing.Size(166, 142);
this.stationAddButton.TabIndex = 4;
this.stationAddButton.Text = "Add Station";
this.stationAddButton.UseSelectable = true;
@@ -1099,28 +1159,22 @@ private void InitializeComponent()
this.metroLabel3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.metroLabel3.FontSize = MetroFramework.MetroLabelSize.Tall;
- this.metroLabel3.Location = new System.Drawing.Point(3, 23);
+ this.metroLabel3.Location = new System.Drawing.Point(3, 18);
this.metroLabel3.Name = "metroLabel3";
- this.metroLabel3.Size = new System.Drawing.Size(700, 37);
+ this.metroLabel3.Size = new System.Drawing.Size(622, 30);
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.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(1414, 918);
+ this.ClientSize = new System.Drawing.Size(1257, 734);
this.Controls.Add(this.adminTabControl);
+ this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.Name = "AdminStationView";
+ this.Padding = new System.Windows.Forms.Padding(18, 60, 18, 16);
this.Load += new System.EventHandler(this.AdminStationView_Load);
this.adminTabControl.ResumeLayout(false);
this.menuTab.ResumeLayout(false);
diff --git a/Enigma/StationsGUI/WaiterStationView.Designer.cs b/Enigma/StationsGUI/WaiterStationView.Designer.cs
index a478952..28bf460 100644
--- a/Enigma/StationsGUI/WaiterStationView.Designer.cs
+++ b/Enigma/StationsGUI/WaiterStationView.Designer.cs
@@ -29,65 +29,36 @@ protected override void Dispose(bool disposing)
private void InitializeComponent()
{
this.tableNumber = new MetroFramework.Controls.MetroLabel();
- this.tableNumInput = new MetroFramework.Controls.MetroTextBox();
this.orderSelect = new MetroFramework.Controls.MetroButton();
this.checkoutTable = new MetroFramework.Controls.MetroButton();
this.printCheque = new MetroFramework.Controls.MetroButton();
+ this.table = new System.Windows.Forms.NumericUpDown();
+ this.metroLabel1 = new MetroFramework.Controls.MetroLabel();
+ ((System.ComponentModel.ISupportInitialize)(this.table)).BeginInit();
this.SuspendLayout();
//
// tableNumber
//
this.tableNumber.AutoSize = true;
- this.tableNumber.Location = new System.Drawing.Point(22, 74);
+ this.tableNumber.Location = new System.Drawing.Point(513, 176);
this.tableNumber.Name = "tableNumber";
this.tableNumber.Size = new System.Drawing.Size(101, 20);
this.tableNumber.TabIndex = 0;
this.tableNumber.Text = "Table Number:";
//
- // tableNumInput
- //
- //
- //
- //
- this.tableNumInput.CustomButton.Image = null;
- this.tableNumInput.CustomButton.Location = new System.Drawing.Point(67, 1);
- this.tableNumInput.CustomButton.Name = "";
- this.tableNumInput.CustomButton.Size = new System.Drawing.Size(21, 21);
- this.tableNumInput.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
- this.tableNumInput.CustomButton.TabIndex = 1;
- this.tableNumInput.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
- this.tableNumInput.CustomButton.UseSelectable = true;
- this.tableNumInput.CustomButton.Visible = false;
- this.tableNumInput.Lines = new string[] {
- "metroTextBox1"};
- this.tableNumInput.Location = new System.Drawing.Point(130, 74);
- this.tableNumInput.MaxLength = 32767;
- this.tableNumInput.Name = "tableNumInput";
- this.tableNumInput.PasswordChar = '\0';
- this.tableNumInput.ScrollBars = System.Windows.Forms.ScrollBars.None;
- this.tableNumInput.SelectedText = "";
- this.tableNumInput.SelectionLength = 0;
- this.tableNumInput.SelectionStart = 0;
- this.tableNumInput.ShortcutsEnabled = true;
- this.tableNumInput.Size = new System.Drawing.Size(89, 23);
- this.tableNumInput.TabIndex = 1;
- this.tableNumInput.Text = "metroTextBox1";
- this.tableNumInput.UseSelectable = true;
- this.tableNumInput.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
- this.tableNumInput.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
- //
// orderSelect
//
- this.orderSelect.Location = new System.Drawing.Point(22, 117);
+ this.orderSelect.Location = new System.Drawing.Point(514, 219);
this.orderSelect.Name = "orderSelect";
this.orderSelect.Size = new System.Drawing.Size(197, 65);
this.orderSelect.TabIndex = 2;
this.orderSelect.Text = "Enter Table Order";
this.orderSelect.UseSelectable = true;
+ this.orderSelect.Click += new System.EventHandler(this.orderSelect_Click);
//
// checkoutTable
//
- this.checkoutTable.Location = new System.Drawing.Point(21, 282);
+ this.checkoutTable.Location = new System.Drawing.Point(513, 384);
this.checkoutTable.Name = "checkoutTable";
this.checkoutTable.Size = new System.Drawing.Size(197, 65);
this.checkoutTable.TabIndex = 3;
@@ -96,28 +67,53 @@ private void InitializeComponent()
//
// printCheque
//
- this.printCheque.Location = new System.Drawing.Point(22, 198);
+ this.printCheque.Location = new System.Drawing.Point(514, 300);
this.printCheque.Name = "printCheque";
this.printCheque.Size = new System.Drawing.Size(197, 65);
this.printCheque.TabIndex = 4;
this.printCheque.Text = "Print Cheque";
this.printCheque.UseSelectable = true;
+ this.printCheque.Click += new System.EventHandler(this.printCheque_Click);
+ //
+ // table
+ //
+ this.table.Location = new System.Drawing.Point(638, 174);
+ this.table.Name = "table";
+ this.table.Size = new System.Drawing.Size(73, 22);
+ this.table.TabIndex = 5;
+ this.table.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged);
+ //
+ // metroLabel1
+ //
+ this.metroLabel1.AutoSize = true;
+ this.metroLabel1.Location = new System.Drawing.Point(825, 219);
+ this.metroLabel1.Name = "metroLabel1";
+ this.metroLabel1.Size = new System.Drawing.Size(84, 20);
+ this.metroLabel1.TabIndex = 6;
+ this.metroLabel1.Text = "metroLabel1";
//
// WaiterStationView
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(248, 380);
+ this.BackgroundImage = global::Enigma.Properties.Resources.gradient_background_26046_26731_hd_wallpapers_jpg;
+ this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.ClientSize = new System.Drawing.Size(1257, 734);
+ this.Controls.Add(this.metroLabel1);
+ this.Controls.Add(this.table);
this.Controls.Add(this.printCheque);
this.Controls.Add(this.checkoutTable);
this.Controls.Add(this.orderSelect);
- this.Controls.Add(this.tableNumInput);
this.Controls.Add(this.tableNumber);
+ this.DisplayHeader = false;
+ this.ForeColor = System.Drawing.Color.Transparent;
this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.Name = "WaiterStationView";
- this.Padding = new System.Windows.Forms.Padding(18, 60, 18, 16);
+ this.Padding = new System.Windows.Forms.Padding(18, 30, 18, 16);
+ this.Resizable = false;
this.Text = "Waiter Station";
this.Load += new System.EventHandler(this.WaiterStationView_Load);
+ ((System.ComponentModel.ISupportInitialize)(this.table)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@@ -126,9 +122,10 @@ private void InitializeComponent()
#endregion
private MetroFramework.Controls.MetroLabel tableNumber;
- private MetroFramework.Controls.MetroTextBox tableNumInput;
private MetroFramework.Controls.MetroButton orderSelect;
private MetroFramework.Controls.MetroButton checkoutTable;
private MetroFramework.Controls.MetroButton printCheque;
+ private System.Windows.Forms.NumericUpDown table;
+ private MetroFramework.Controls.MetroLabel metroLabel1;
}
}
\ No newline at end of file
diff --git a/Enigma/StationsGUI/WaiterStationView.cs b/Enigma/StationsGUI/WaiterStationView.cs
index 007e705..cda224a 100644
--- a/Enigma/StationsGUI/WaiterStationView.cs
+++ b/Enigma/StationsGUI/WaiterStationView.cs
@@ -9,11 +9,13 @@
using System.Windows.Forms;
using EnigmaX.Classes;
using MetroFramework.Forms;
+using Enigma.Popups;
namespace Enigma.StationsGUI
{
public partial class WaiterStationView : MetroForm
{
+ public int _tableNumber;
public WaiterStationView()
{
InitializeComponent();
@@ -23,5 +25,27 @@ private void WaiterStationView_Load(object sender, EventArgs e)
{
}
+
+ private void orderSelect_Click(object sender, EventArgs e)
+ {
+ tableOrder order = new tableOrder(this);
+ order.Show();
+ }
+
+ private void numericUpDown1_ValueChanged(object sender, EventArgs e)
+ {
+ setTableNumber((int)table.Value);
+ metroLabel1.Text = _tableNumber.ToString();
+ }
+
+ private void printCheque_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ private void setTableNumber(int tableNum)
+ {
+ _tableNumber = tableNum;
+ }
}
}
diff --git a/EnigmaX/Classes/EnigmaMenuItem.cs b/EnigmaX/Classes/EnigmaMenuItem.cs
index ae6ee7a..00f21f0 100644
--- a/EnigmaX/Classes/EnigmaMenuItem.cs
+++ b/EnigmaX/Classes/EnigmaMenuItem.cs
@@ -46,6 +46,12 @@ public string Title {
}
}
+ public int getItemType()
+ {
+ return (int)_itemType + 1;
+ }
+
+
public static EnigmaMenuItem idToMenuItem(int id)
{
DBConnect db = new DBConnect();
@@ -66,5 +72,6 @@ public override string ToString() {
return _id + ": " + _title;
}
+
}
}