Esempio n. 1
0
 public WpfPlayereditor(WpfPlayers playerWindow)
 {
     InitializeComponent();
     Teams = DBSalibandytournament.GetTeamsFromDB();
     cmbTeams.ItemsSource = Teams;
     this.playerWindow    = playerWindow;
 }
Esempio n. 2
0
 public WpfPlayereditor(WpfPlayers playerWindow, Player player)
 {
     InitializeComponent();
     this.player            = player;
     txtID.Text             = player.HenkiloId.ToString();
     txtLastname.Text       = player.Sukunimi;
     txtFirstname.Text      = player.Etunimi;
     txtBirthday.Text       = player.Syntymavuosi.ToString();
     txtPlayernumber.Text   = player.Pelinumero.ToString();
     txtPosition.Text       = player.Pelipaikka;
     txtRole.Text           = player.Rooli;
     cmbTeams.SelectedValue = player.JoukkueId;
     Teams = DBSalibandytournament.GetTeamsFromDB();
     cmbTeams.ItemsSource = Teams;
     this.playerWindow    = playerWindow;
 }
Esempio n. 3
0
        private void BtnPlayers_Click(object sender, RoutedEventArgs e)
        {
            WpfPlayers players = new WpfPlayers();

            players.Show();
        }