Esempio n. 1
0
 private void SendCommandButton_Click(object sender, RoutedEventArgs e)
 {
     TheServer.SendCommand(CommandTextBox.Text);
     ConsoleLogTextBox.AppendText($"SYSTEM COMMAND SENT : {CommandTextBox.Text}");
     ConsoleLogTextBox.AppendText(Environment.NewLine);
     ConsoleLogTextBox.ScrollToEnd();
     CommandTextBox.Clear();
 }
Esempio n. 2
0
        private void BGWorker_ProgressChanged(object sender, ProgressChangedEventArgs e)
        {
            string s = (string)e.UserState;

            ConsoleLogTextBox.AppendText(s);
            ConsoleLogTextBox.AppendText(Environment.NewLine);
            ConsoleLogTextBox.ScrollToEnd();
            CheckPlayerConnection(s);
            CheckPlayerDisconnect(s);
            if (UpdatePlayers == true)
            {
                UpdatePlayerList(s);
            }
        }