private void OnEdit() { if ( SelectedTeam != null ) { var teamId = SelectedTeam.ID; var dialog = new EditTeamView( teamId ); dialog.Show(); } else ShowDialog( "Team not selected" ); }
private void BtnNewEventClick(object sender, RoutedEventArgs e) { var dialog = new EditTeamView(0); dialog.Show(); }