Ejemplo n.º 1
0
        public RconServerManager()
        {
            instance = this;
            servers  = new RconServerCollection();

            rconDataFilePath = Path.Combine(Application.UserAppDataPath, "RconServers.json");
        }
Ejemplo n.º 2
0
        public Form1()
        {
            InitializeComponent();

            rconManager = new RconServerManager();
            rconManager.Load();

            autoUpdateTimer          = new Timer();
            autoUpdateTimer.Interval = 30000;
            autoUpdateTimer.Tick    += AutoUpdateTimer_Tick;
            autoUpdateTimer.Start();

            serverManagmentDialog = new ServerManagmentDialog();
            scenarioListDialog    = new ScenarioListDialog();
            mapListDialog         = new MapListDialog();
            banListDialog         = new BanListDialog();
            kickPlayersDialog     = new KickPlayersDialog();
            banPlayersDialog      = new BanPlayersDialog();
            debugPacketDialog     = new DebugPacketDialog();
        }