Пример #1
0
 private void startBtn_Click(object sender, RoutedEventArgs e)
 {
     foreach (ItemVievModel el in ((ControlViewModel)DataContext).Items)
     {
         ListsForGame.playersList.Add(el.Text);
     }
     if (countPlayers != 0)
     {
         PlayWindow playWindow = new PlayWindow(rndChecked.IsChecked.Value);
         playWindow.WindowStartupLocation = WindowStartupLocation.CenterScreen;
         playWindow.Show();
         Close();
     }
     else if (countPlayers == 0)
     {
         MessageBox.Show("Добавьте хотя бы одного игрока!");
     }
 }
 private void nextBtn_Click(object sender, RoutedEventArgs e)
 {
     eventMaster.Show();
     Close();
 }