private void EditTournamentDialogClosingEventHandler(object sender, DialogClosingEventArgs e) { if ((e.Parameter as bool?) == true) { EditTournamentViewModel vm = e.Content as EditTournamentViewModel; TournamentManager.UpdateTournament(this.Tournament.ID, vm.Name, vm.NumLanes); } }
public void EditTournament() { EditTournamentViewModel editVm = new EditTournamentViewModel(this.Tournament); DialogHost.Show(editVm, "RootDialog", EditTournamentDialogClosingEventHandler); }