~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/monomac/samples/WhereIsMyMac/MainWindowController.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
                {
86
86
                        CLLocation currentLocation = locationManager.Location;
87
87
                        
 
88
                        // it can take a few seconds before a location is returned
 
89
                        if (currentLocation == null) {
 
90
                                AppKitFramework.NSBeep ();
 
91
                                return;
 
92
                        }
 
93
                        
88
94
                        var urlPath = String.Format("http://maps.google.com/maps?ll={0},{1}&spn={2},{3}",
89
95
                                                    currentLocation.Coordinate.Latitude,currentLocation.Coordinate.Longitude,
90
96
                                                    latitudeRangeForLocation (currentLocation), longitudeRangeForLocation (currentLocation));