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