private void btnChatSend_Click(object sender, RoutedEventArgs e) { if (txtChatInput.Text != "") { ClientControll.SendChatMessage(txtChatInput.Text); txtChatInput.Text = ""; } txtChatInput.Focus(); }
private void btnStartGame_Click(object sender, RoutedEventArgs e) { if (ClientControll.gameState.Users.Count > 2) { ClientControll.StartGame(); } else { MessageBox.Show("В комнате должно быть не меньше 3 человек", "Ошибка", MessageBoxButton.OK, MessageBoxImage.Warning); } }
private void LstRooms_OnMouseDoubleClick(object sender, MouseButtonEventArgs e) { var room = (Room)lstRooms.SelectedItem; if (room == null || room.Id == 0) { return; } // Clear chat area before entering the room ClientControll.gameState.ClearChat(); ClientControll.GotoRoom(room.Id); }
void AppStartup(object sender, StartupEventArgs args) { ClientControll.Run(); }
public void Notify(GameMessage msg) { LogSaver.Log("Callback invoked " + msg.actionType.ToString()); ClientControll.ChangeClientView(msg); }
private void Button_Click_2(object sender, RoutedEventArgs e) { ClientControll.Registration(LoginTB.Text, PasswordTB.Text); }
private void btnCurrentWordVoteUp_Click(object sender, RoutedEventArgs e) { ClientControll.VoteForPlayerWord(0, true); }
private void btnAskQuestion_Click(object sender, RoutedEventArgs e) { ClientControll.AskQuestion(txtQuestion.Text, txtCurrentWord.Text); txtQuestion.Text = ""; txtCurrentWord.Text = ""; }
private void btnSubmitAnswer_Click(object sender, RoutedEventArgs e) { ClientControll.GiveCurrentWordVariant(txtAnswer.Text); txtAnswer.Text = ""; }
private void MainWindow_Closed(object sender, EventArgs e) { ClientControll.Logoff(); }
private void btnSetPrimaryWord_Click(object sender, RoutedEventArgs e) { ClientControll.SetPrimaryWord(txtSetPrimaryWord.Text); }
private void btnLeaveRoom_Click(object sender, RoutedEventArgs e) { ClientControll.gameState.ClearChat(); ClientControll.LeaveRoom(); }
private void btnCreateRoom_Click(object sender, RoutedEventArgs e) { ClientControll.CreateNewRoom(txtRoomName.Text); }
private void btnVoteForChiefWord_Disagree_Click(object sender, RoutedEventArgs e) { ClientControll.VoteForChiefWord(false); }
private void btnHostHaveChiefWord_Click(object sender, RoutedEventArgs e) { ClientControll.GiveChiefWord(txtChiefWord.Text); }
private void btnVarOfCurWordVoteDown_Click(object sender, RoutedEventArgs e) { ClientControll.VoteForPlayerWord(1, false); }