Exemplo n.º 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);
 }
        //init
        public SwayStation(ServerInterface _serverInstance)
        {
            station = this;

            //to be called inside on load
            timeElapsed     = new Stopwatch();
            serverInterface = _serverInstance;
            database        = new DatabaseHandler(this);
            _clients        = new List <SpaceClient>();
            if (!Directory.Exists("log"))
            {
                Directory.CreateDirectory("log");
            }
            _IndexIdTable        = new Hashtable();
            _managingWaitingList = new Hashtable();
        }
Exemplo n.º 3
0
 public DatabaseControl(SwayStation sway)
 {
     InitializeComponent();
     station = sway;
     Util.colorListViewHeader(ref playerList, Color.Black, Color.Khaki);
 }
 public ConsoleControl(SwayStation sway)
 {
     InitializeComponent();
     station = sway;
 }
 public DatabaseHandler(SwayStation sway)
 {
     station = sway;
     Initialize();
 }
Exemplo n.º 6
0
 public ClientsControl(SwayStation sway)
 {
     InitializeComponent();
     station = sway;
     Util.colorListViewHeader(ref detailClientList, Color.Black, Color.Khaki);
 }
 public AddPlayerPopUp(SwayStation sway, AddPlayerMode _mode)
 {
     InitializeComponent();
     station = sway;
     mode    = _mode;
 }
Exemplo n.º 8
0
 public DashboardControl(SwayStation sway)
 {
     InitializeComponent();
     station = sway;
 }