Пример #1
0
 public static StationCardFragment WithStation(SimpleStation station, BikeActionStatus status)
 {
     var r = new StationCardFragment ();
     r.station = station;
     r.status = status;
     return r;
 }
Пример #2
0
 public void NavigateToStation(SimpleStation station)
 {
     Finish ();
     var culture = System.Globalization.CultureInfo.InvariantCulture;
     var req = string.Format ("google.navigation:///?q={0},{1}&mode=w",
                              station.Lat.ToString (culture),
                              station.Lon.ToString (culture));
     var geoUri = Android.Net.Uri.Parse (req);
     var intent = new Intent (Intent.ActionView, geoUri);
     //intent.SetPackage ("com.google.android.apps.maps");
     StartActivity (intent);
 }