Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Started chef station
  • Loading branch information
Jacob Boislard committed Apr 18, 2017
1 parent 4afaacc commit 0279a3a
Show file tree
Hide file tree
Showing 9 changed files with 407 additions and 30 deletions.
10 changes: 10 additions & 0 deletions Enigma/Enigma.csproj
Expand Up @@ -124,6 +124,12 @@
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="StationsGUI\ChefStationView.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="StationsGUI\ChefStationView.Designer.cs">
<DependentUpon>ChefStationView.cs</DependentUpon>
</Compile>
<Compile Include="StationsGUI\HostStationView.cs">
<SubType>Form</SubType>
</Compile>
Expand All @@ -137,6 +143,7 @@
<DependentUpon>WaiterStationView.cs</DependentUpon>
</Compile>
<Compile Include="Stations\AdminStation.cs" />
<Compile Include="Stations\ChefStation.cs" />
<Compile Include="Stations\DebugStation.cs" />
<Compile Include="Stations\WaiterStation.cs" />
<Compile Include="Stations\HostStation.cs" />
Expand Down Expand Up @@ -167,6 +174,9 @@
<EmbeddedResource Include="StationsGUI\AdminStationView.resx">
<DependentUpon>AdminStationView.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="StationsGUI\ChefStationView.resx">
<DependentUpon>ChefStationView.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="StationsGUI\DebugStationView.resx">
<DependentUpon>DebugStationView.cs</DependentUpon>
</EmbeddedResource>
Expand Down
7 changes: 7 additions & 0 deletions Enigma/EnigmaMain.cs
Expand Up @@ -81,5 +81,12 @@ namespace Enigma
loadedStations.Add(station);
station.showView();
}

private void chefbutton_Click(object sender, EventArgs e)
{
ChefStation station = new ChefStation("debugchef");
loadedStations.Add(station);
station.showView();
}
}
}
24 changes: 24 additions & 0 deletions Enigma/Stations/ChefStation.cs
@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using EnigmaX.Classes;

namespace Enigma.Stations
{
class ChefStation : Station
{
public ChefStation(string stationid) : base(StationTypeDef.host, stationid)
{
Employee activeEmployee = SystemFunctions.showPinScreenUntilAuthenticated(EmployeeRole.chef);
view = new StationsGUI.ChefStationView();

}

public override void showView()
{
view.Show();
}
}
}
60 changes: 30 additions & 30 deletions Enigma/StationsGUI/AdminStationView.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0279a3a

Please sign in to comment.