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