Пример #1
0
 private void mapsbutton_Click(object sender, EventArgs e)
 {
     subtitlelabel.Text = "Maps";
     if (mapsControl == null)
         mapsControl = new MapsControl();
     if (!mainPanel.Controls.Contains(mapsControl))
         mainPanel.Controls.RemoveAt(0);
     mainPanel.Controls.Add(mapsControl);
 }
Пример #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);
 }