Ejemplo n.º 1
0
 public PlayerUC(Player player, MatchWindow matchWindow)
 {
     InitializeComponent();
     Player           = player;
     this.matchWindow = matchWindow;
     Configure();
 }
Ejemplo n.º 2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            if (string.IsNullOrEmpty(cmbAwayTeam.Text) || string.IsNullOrEmpty(cmbHomeTeam.Text))
            {
                MessageBox.Show(rm.GetString("MainWindow.TeamsNotChosenMessage"));
                return;
            }
            string      chosenOpponent = cmbAwayTeam.SelectedItem.ToString().Split().Last();
            MatchWindow mw             = new MatchWindow(matches, chosenTeam, chosenOpponent, size, savedTeam);

            mw.Show();
        }