コード例 #1
0
 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);
     }
 }
コード例 #2
0
        public void EditTournament()
        {
            EditTournamentViewModel editVm = new EditTournamentViewModel(this.Tournament);

            DialogHost.Show(editVm, "RootDialog", EditTournamentDialogClosingEventHandler);
        }