private void databasebutton_Click(object sender, EventArgs e)
 {
     subtitlelabel.Text = "Database";
     if (databaseControl == null)
         databaseControl = new DatabaseControl(station);
     if (!mainPanel.Controls.Contains(databaseControl))
         mainPanel.Controls.RemoveAt(0);
     mainPanel.Controls.Add(databaseControl);
 }
 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);
 }