Skip to content
Permalink
0279a3a363
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
92 lines (79 sloc) 2.55 KB
using MetroFramework.Forms;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Enigma.Stations;
using EnigmaX.Classes;
using Enigma.StationsGUI;
using EnigmaX.GUI;
namespace Enigma
{
public partial class EnigmaMain : MetroForm
{
bool debugmode = false;
public List<Station> loadedStations = new List<Station>();
public EnigmaMain(bool debugmode)
{
InitializeComponent();
this.debugmode = debugmode;
}
private void EnigmaMain_Load(object sender, EventArgs e)
{
if (!debugmode)
{
Visible = false;
ShowInTaskbar = false;
ShowIcon = false;
}
else {
Visible = true;
ShowInTaskbar = true;
ShowIcon = true;
}
}
private void runConfiguredStation() {
//this is where, when not in debug mode, this will load some registry to see what station and id it should load and execute
}
private void hostButton_Click(object sender, EventArgs e)
{
HostStation station = new HostStation("debughost");
loadedStations.Add(station);
station.showView();
}
private void debugButton_Click(object sender, EventArgs e)
{
DebugStation station = new DebugStation(EnigmaX.Classes.StationTypeDef.host, "debug");
loadedStations.Add(station);
station.showView();
}
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();
}
private void waiterbutton_Click(object sender, EventArgs e)
{
WaiterStation station = new WaiterStation("debugwaiter");
loadedStations.Add(station);
station.showView();
}
private void chefbutton_Click(object sender, EventArgs e)
{
ChefStation station = new ChefStation("debugchef");
loadedStations.Add(station);
station.showView();
}
}
}