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