private void Button_Click_4(object sender, RoutedEventArgs e) { Dialogs.GetLocationWindow dlg = new Dialogs.GetLocationWindow(Core.ApplicationData.Instance.CenterLocation); if (dlg.ShowDialog() == true) { Utils.DataAccess.SetCenterLocation(dlg.Location.Lat, dlg.Location.Lon); } }
private void Button_Click_3(object sender, RoutedEventArgs e) { Dialogs.GetLocationWindow dlg = new Dialogs.GetLocationWindow(Core.ApplicationData.Instance.HomeLocation); if (dlg.ShowDialog() == true) { Core.ApplicationData.Instance.HomeLocation.Lat = dlg.Location.Lat; Core.ApplicationData.Instance.HomeLocation.Lon = dlg.Location.Lon; } }
private void Button_Click_1(object sender, RoutedEventArgs e) { var dlg = new Dialogs.GetLocationWindow(); if (dlg.ShowDialog() == true) { if (dlg.Location != null) { CustomLocations.Add(Utils.Conversion.GetCoordinatesPresentation(dlg.Location)); } } }
private void Button_Click(object sender, RoutedEventArgs e) { Core.Data.Location l = getLocation(); if (l == null) { l = Core.ApplicationData.Instance.CenterLocation; } Dialogs.GetLocationWindow dlg = new Dialogs.GetLocationWindow(l); if (dlg.ShowDialog() == true) { Core.Settings.Default.GeocacheFilterLocation = dlg.Location.ToString(); } }
private void Button_Click_1(object sender, RoutedEventArgs e) { Core.Data.Location l; if (!string.IsNullOrEmpty(Core.Settings.Default.LiveAPIGetGCLocation)) { l = Utils.Conversion.StringToLocation(Core.Settings.Default.LiveAPIGetGCLocation); } else { l = Core.ApplicationData.Instance.CenterLocation; } Dialogs.GetLocationWindow dlg = new Dialogs.GetLocationWindow(l); if (dlg.ShowDialog() == true) { Core.Settings.Default.LiveAPIGetGCLocation = dlg.Location.ToString(); } }
private void Button_Click(object sender, RoutedEventArgs e) { Core.Data.Location l = null; if (Core.ApplicationData.Instance.ActiveGeocache != null) { l = new Core.Data.Location(Core.ApplicationData.Instance.ActiveGeocache.Lat, Core.ApplicationData.Instance.ActiveGeocache.Lon); } if (l == null) { l = Core.ApplicationData.Instance.CenterLocation; } Dialogs.GetLocationWindow dlg = new Dialogs.GetLocationWindow(l); if (dlg.ShowDialog() == true) { GeocacheCoordinate = dlg.Location.ToString(); } }
private void Button_Click_1(object sender, RoutedEventArgs e) { Core.Data.Location l = null; if (Core.ApplicationData.Instance.ActiveGeocache != null) { if (Core.ApplicationData.Instance.ActiveGeocache.ContainsCustomLatLon) { l = new Core.Data.Location((double)Core.ApplicationData.Instance.ActiveGeocache.CustomLat, (double)Core.ApplicationData.Instance.ActiveGeocache.CustomLon); } } if (l == null) { l = Core.ApplicationData.Instance.CenterLocation; } Dialogs.GetLocationWindow dlg = new Dialogs.GetLocationWindow(l); if (dlg.ShowDialog() == true) { WaypointLocation = dlg.Location.ToString(); } }
private void Button_Click(object sender, RoutedEventArgs e) { Core.Data.Location l = getLocation(); if (l==null) { l = Core.ApplicationData.Instance.CenterLocation; } Dialogs.GetLocationWindow dlg = new Dialogs.GetLocationWindow(l); if (dlg.ShowDialog()==true) { Core.Settings.Default.GeocacheFilterLocation = dlg.Location.ToString(); } }
private void Button_Click_1(object sender, RoutedEventArgs e) { Dialogs.GetLocationWindow dlg = new Dialogs.GetLocationWindow(Core.ApplicationData.Instance.CenterLocation); if (dlg.ShowDialog() == true) { Utils.DataAccess.SetCenterLocation(dlg.Location.Lat, dlg.Location.Lon); } }
private void Button_Click(object sender, RoutedEventArgs e) { Dialogs.GetLocationWindow dlg = new Dialogs.GetLocationWindow(Core.ApplicationData.Instance.HomeLocation); if (dlg.ShowDialog()==true) { Core.ApplicationData.Instance.HomeLocation.Lat = dlg.Location.Lat; Core.ApplicationData.Instance.HomeLocation.Lon = dlg.Location.Lon; } }