private void BtnEditteam_Click(object sender, RoutedEventArgs e) { Team selectedTeam = (Team)dgTeams.SelectedItem; if (selectedTeam != null) { WpfTeameditor teameditor = new WpfTeameditor(this, selectedTeam); teameditor.ShowDialog(); } RefreshTeams(); }
private void btnNewteam_Click(object sender, RoutedEventArgs e) { WpfTeameditor teameditor = new WpfTeameditor(this); teameditor.ShowDialog(); }