示例#1
0
 private void StatusTextBox_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)
 {
     if (e.Key == System.Windows.Input.Key.Enter)
     {
         MainClientWorker.UpdateStatus(StatusTextBox.Text);
     }
 }
示例#2
0
 private void ClientChatTextBoxInput_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)
 {
     if (e.Key == System.Windows.Input.Key.Enter)
     {
         MainClientWorker.SendMessage(ClientChatTextBoxInput.Text);
         ClientChatTextBoxInput.Text = null;
     }
 }
示例#3
0
 private void GeneralChatInputTextBox_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         string MessageToSend = GeneralChatInputTextBox.Text;
         Task.Run(() => MainClientWorker.SendMessage(MessageToSend));
         GeneralChatInputTextBox.Text = "";
     }
 }
示例#4
0
 private void Page_Loaded(object sender, RoutedEventArgs e)
 {
     LoginMenuPlayer(true, null);
     Task.Run(() => ClientNetworking.Connect());
     Task.Run(() => MainClientWorker.CheckSoundEffects());
 }
示例#5
0
 private void ChangeProfilePictureButton_Click(object sender, RoutedEventArgs e)
 {
     MainClientWorker.GetNewProfilePicture();
 }
示例#6
0
 private void BackButton_Click(object sender, RoutedEventArgs e)
 {
     MainClientWorker.ShowMainMenu();
 }
示例#7
0
 private void OptionsButton_Click(object sender, RoutedEventArgs e)
 {
     MainClientWorker.ShowOptions();
 }
示例#8
0
 private void LogOutButton_Click(object sender, System.Windows.RoutedEventArgs e)
 {
     MainClientWorker.DoLogout();
 }