Пример #1
0
 public void ExecuteResumeGame(object nothing)
 {
     DataResource.SaveEntries();
     App.Current.MainPage.Navigation.PushAsync(new GamePlay(NavigationMessage.GetData <Game> ("ActiveGame")));
 }
Пример #2
0
 protected override void OnDisappearing()
 {
     base.OnDisappearing();
     NavigationMessage.PutData("ViewScoresheet", 0);
 }
Пример #3
0
 protected override void OnAppearing()
 {
     base.OnAppearing();
     ((DataResourceAccess)this.BindingContext).GameInProgress = (NavigationMessage.GetData <bool> ("GameInProgress") == true);
 }
Пример #4
0
 protected override void OnDisappearing()
 {
     base.OnDisappearing();
     NavigationMessage.PutData("ActiveGame", this.BindingContext);
 }
Пример #5
0
 public async void ExecuteReset(object nothing)
 {
     NavigationMessage.PutData("ActiveGame", this);
     Page page = await App.Current.MainPage.Navigation.PopAsync();
 }
Пример #6
0
 public void ExecuteScoresheet(object nothing)
 {
     NavigationMessage.PutData("ActiveGame", this);
     App.Current.MainPage.Navigation.PushAsync(new Scoresheet());
 }
Пример #7
0
 public void SetGameInProgress()
 {
     NavigationMessage.PutData <bool> ("GameInProgress", true);
 }