public PlayerUC(Player player, MatchWindow matchWindow) { InitializeComponent(); Player = player; this.matchWindow = matchWindow; Configure(); }
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(); }