예제 #1
0
 private async void ViewWorldButton_Clicked(object sender, EventArgs e)
 {
     if (CurrentStarSystem == null)
     {
         await DisplayAlert("Warning", "Please generate a system first.", "OK");
     }
     else
     {
         var worldView = new PlanetView(CurrentStarSystem.Mainworld, Config);
         await Navigation.PushAsync(worldView);
     }
 }
예제 #2
0
 private async void Satellites_ItemSelected(object sender, SelectedItemChangedEventArgs e)
 {
     var planet       = e.SelectedItem as Planet;
     var planetViewer = new PlanetView(planet, _configuration);
     await Navigation.PushAsync(planetViewer);
 }