From be94fdde9e8b3a952f2bada57ccc216805f12e22 Mon Sep 17 00:00:00 2001 From: Jacob Boislard Date: Tue, 18 Apr 2017 02:08:21 -0400 Subject: [PATCH] Updated chef station, still needs some work --- Enigma/Stations/ChefStation.cs | 2 +- Enigma/StationsGUI/ChefStationView.Designer.cs | 7 ++++--- Enigma/StationsGUI/ChefStationView.cs | 5 +++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Enigma/Stations/ChefStation.cs b/Enigma/Stations/ChefStation.cs index d02614d..2ce97dd 100644 --- a/Enigma/Stations/ChefStation.cs +++ b/Enigma/Stations/ChefStation.cs @@ -11,7 +11,7 @@ namespace Enigma.Stations { public ChefStation(string stationid) : base(StationTypeDef.host, stationid) { - Employee activeEmployee = SystemFunctions.showPinScreenUntilAuthenticated(EmployeeRole.chef); + Employee activeEmployee = SystemFunctions.showPinScreenUntilAuthenticated(EmployeeRole.host); view = new StationsGUI.ChefStationView(); } diff --git a/Enigma/StationsGUI/ChefStationView.Designer.cs b/Enigma/StationsGUI/ChefStationView.Designer.cs index 4a75f43..79efa79 100644 --- a/Enigma/StationsGUI/ChefStationView.Designer.cs +++ b/Enigma/StationsGUI/ChefStationView.Designer.cs @@ -52,12 +52,12 @@ "Order10"}); this.orderListBox.Location = new System.Drawing.Point(31, 43); this.orderListBox.Name = "orderListBox"; - this.orderListBox.Size = new System.Drawing.Size(665, 717); + this.orderListBox.Size = new System.Drawing.Size(1331, 841); this.orderListBox.TabIndex = 0; // // checkOffOrderButton // - this.checkOffOrderButton.Location = new System.Drawing.Point(821, 65); + this.checkOffOrderButton.Location = new System.Drawing.Point(1368, 43); this.checkOffOrderButton.Name = "checkOffOrderButton"; this.checkOffOrderButton.Size = new System.Drawing.Size(161, 144); this.checkOffOrderButton.TabIndex = 2; @@ -74,7 +74,7 @@ // this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(1134, 812); + this.ClientSize = new System.Drawing.Size(1615, 905); this.Controls.Add(this.checkOffOrderButton); this.Controls.Add(this.orderListBox); this.DisplayHeader = false; @@ -82,6 +82,7 @@ this.Padding = new System.Windows.Forms.Padding(18, 30, 18, 16); this.Style = MetroFramework.MetroColorStyle.Orange; this.Text = "ChefStationView"; + this.Load += new System.EventHandler(this.ChefStationView_Load); this.ResumeLayout(false); } diff --git a/Enigma/StationsGUI/ChefStationView.cs b/Enigma/StationsGUI/ChefStationView.cs index cd264d7..4586875 100644 --- a/Enigma/StationsGUI/ChefStationView.cs +++ b/Enigma/StationsGUI/ChefStationView.cs @@ -21,6 +21,7 @@ namespace Enigma.StationsGUI { DBConnect db = new DBConnect(); List orders = new List(); + List items = new List(); public ChefStationView() { @@ -50,13 +51,13 @@ namespace Enigma.StationsGUI orderListBox.Items.Clear(); foreach (Order order in orders) { - orderListBox.Items.Add(order); + orderListBox.Items.Add(order.getOrder()); } } private void checkOffOrderButton_Click(object sender, EventArgs e) { - + } private void queryTimer_Tick(object sender, EventArgs e)