Ejemplo n.º 1
0
 private void dashboardbutton_Click(object sender, EventArgs e)
 {
     subtitlelabel.Text = "Dashboard";
     if (!mainPanel.Controls.Contains(dashboardControl))
         mainPanel.Controls.RemoveAt(0);
     if (dashboardControl == null)
         dashboardControl = new DashboardControl(station);
     mainPanel.Controls.Add(dashboardControl);
 }
Ejemplo n.º 2
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);
 }