private void StatusTextBox_KeyDown(object sender, System.Windows.Input.KeyEventArgs e) { if (e.Key == System.Windows.Input.Key.Enter) { MainClientWorker.UpdateStatus(StatusTextBox.Text); } }
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; } }
private void GeneralChatInputTextBox_KeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) { string MessageToSend = GeneralChatInputTextBox.Text; Task.Run(() => MainClientWorker.SendMessage(MessageToSend)); GeneralChatInputTextBox.Text = ""; } }
private void Page_Loaded(object sender, RoutedEventArgs e) { LoginMenuPlayer(true, null); Task.Run(() => ClientNetworking.Connect()); Task.Run(() => MainClientWorker.CheckSoundEffects()); }
private void ChangeProfilePictureButton_Click(object sender, RoutedEventArgs e) { MainClientWorker.GetNewProfilePicture(); }
private void BackButton_Click(object sender, RoutedEventArgs e) { MainClientWorker.ShowMainMenu(); }
private void OptionsButton_Click(object sender, RoutedEventArgs e) { MainClientWorker.ShowOptions(); }
private void LogOutButton_Click(object sender, System.Windows.RoutedEventArgs e) { MainClientWorker.DoLogout(); }