public Entry100() { InitializeComponent(); #region intro stuff this.Title = "Near Hospitals with ER's"; BackgroundColor = Color.Black; // WhiteSmoke; Opacity = 0.9; //?//App.statusBaseLine.BackgroundColor = A_Util001.ColorInTraining(); #endregion // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! // try { var duration = TimeSpan.FromMilliseconds(1000); Vibration.Vibrate(duration); } catch (FeatureNotSupportedException ex) { string aa = ex.Message.ToString(); } catch (Exception ex) { string aa = ex.Message.ToString(); } // Get all data into global (App. global) strings _ = FlatData.GetHospitalDB(); // // At the end of the screen build, 'GetDevLocationAsync' finds // // 1) Get Latitude, Longitude, Altitude, Accuracy from current location // 2) Get address from Latitude, Longitude. Post // 3) Generate "100 miles" address list of hospitals in range. // 4) With current 100-hospital list, Show Actual Nearest Hospital // _ = GeoSupport.GetDevLocationAsync_SectionA(); if (App.MajorError) { DisplayAlert("Internet Access", "Possible issues:\n\n" + "Assure you have FULL Internet Access:\n" + " 1) Go to your Phone's [Settings]\n" + " 2) Check CONNECTION TO Internet / WiFi\n" + " or\n" + " 3) turn \"Data Usage\" on $$ fee !!\n" + " you may also need to set\n" + " 4) LOCATION permission under\n" + " --> Settings --> Google --> Location\n", "Got it", " "); } }
public FindHospital() { InitializeComponent(); #region intro stuff this.Title = "Nearest Hospital/ER"; BackgroundColor = Color.Black; // WhiteSmoke; Opacity = 0.9; #endregion // range in miles *100 (stupid conversion to integer) App.requestedHospitalRange = 1000; // // At the end of the screen build, 'GetDevLocationAsync' finds // // 1) Get Latitude, Longitude, Altitude, Accuracy from current location // 2) Get address from Latitude, Longitude. Post // 3) Generate "100 miles" address list of hospitals in range. // 4) With current 100-hospital list, Show Actual Nearest Hospital // _ = GeoSupport.GetDevLocationAsync_SectionB(this.btdisplayAllHospitals, this.btNearestHospital, this.lblLating, this.PrimlblDisplayAddress); if (App.MajorError) { DisplayAlert("Internet Access", "Possible issues:\n\n" + "Assure you have FULL Internet Access:\n" + " 1) Go to your Phone's [Settings]\n" + " 2) Check CONNECTION TO Internet / WiFi\n" + " or\n" + " 3) turn \"Data Usage\" on $$ fee !!\n" + " you may also need to set\n" + " 4) LOCATION permission under\n" + " --> Settings --> Google --> Location\n", "Got it", " "); } // end of screen build }
private async void TapGestureGoogle_Tapped(object sender, EventArgs e) { GeoSupport.actualAddressMap(); }