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); }
public TextBox GetLogTextBox() { if (consoleControl == null) consoleControl = new ConsoleControl(station); return consoleControl.GetLogTextBox(); }
public void AppendToLog(string s) { if (consoleControl == null) consoleControl = new ConsoleControl(station); consoleControl.GetLogTextBox().AppendText(s); }