コード例 #1
0
 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);
     }
 }
コード例 #2
0
 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;
     }
 }
コード例 #3
0
        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));
                }
            }
        }
コード例 #4
0
ファイル: Control.xaml.cs プロジェクト: pheijmans-zz/GAPP
 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();
     }
 }
コード例 #5
0
 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();
     }
 }
コード例 #6
0
 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();
     }
 }
コード例 #7
0
ファイル: Control.xaml.cs プロジェクト: pheijmans-zz/GAPP
 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();
     }
 }
コード例 #8
0
ファイル: Control.xaml.cs プロジェクト: gahadzikwa/GAPP
 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();
     }
 }
コード例 #9
0
 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);
     }
 }
コード例 #10
0
 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;
     }
 }