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