Пример #1
0
        private void PlayerListTimerTick(object sender, ElapsedEventArgs e)
        {
            RemoteConsole rcon   = new RemoteConsole(serverIP, serverPort, serverPassword);
            ServerStatus  status = rcon.GetStatus();

            BeginInvoke(new Action(() => UpdatePlayerList(status.PlayerList)));
        }
Пример #2
0
 private void BtnSendMessge_Click(object sender, EventArgs e)
 {
     if (TxtMessage.Text.Length != 0)
     {
         RemoteConsole rcon = new RemoteConsole(serverIP, serverPort, serverPassword);
         rcon.Notice(TxtMessage.Text);
     }
 }