private void ServerInterface_Load(object sender, EventArgs e) { station = new SwayStation(this); dashboardControl = new DashboardControl(station); clientsControl = new ClientsControl(station); mapsControl = new MapsControl(); databaseControl = new DatabaseControl(station); optionsControl = new OptionsControl(); consoleControl = new ConsoleControl(station); storeControl = new StoreControl(); mainPanel.Controls.Add(dashboardControl); }
//init public SwayStation(ServerInterface _serverInstance) { station = this; //to be called inside on load timeElapsed = new Stopwatch(); serverInterface = _serverInstance; database = new DatabaseHandler(this); _clients = new List <SpaceClient>(); if (!Directory.Exists("log")) { Directory.CreateDirectory("log"); } _IndexIdTable = new Hashtable(); _managingWaitingList = new Hashtable(); }
public DatabaseControl(SwayStation sway) { InitializeComponent(); station = sway; Util.colorListViewHeader(ref playerList, Color.Black, Color.Khaki); }
public ConsoleControl(SwayStation sway) { InitializeComponent(); station = sway; }
public DatabaseHandler(SwayStation sway) { station = sway; Initialize(); }
public ClientsControl(SwayStation sway) { InitializeComponent(); station = sway; Util.colorListViewHeader(ref detailClientList, Color.Black, Color.Khaki); }
public AddPlayerPopUp(SwayStation sway, AddPlayerMode _mode) { InitializeComponent(); station = sway; mode = _mode; }
public DashboardControl(SwayStation sway) { InitializeComponent(); station = sway; }