Example #1
0
        private void BtnShowMapObjectClick(object sender, RoutedEventArgs e)
        {
            CoordinateDto dto = new CoordinateDto()
            {
                Lat = double.Parse(latTextBox.Text.Replace('.', ',')), Lon = double.Parse(lonTextBox.Text.Replace('.', ','))
            };

            CoordinateWindow.Window.Implementation.CoordinateWindow cWindow = new CoordinateWindow.Window.Implementation.CoordinateWindow {
                Coordinate = dto
            };
            if (_isguest)
            {
                cWindow.ReadOnly = true;
            }
            cWindow.ShowDialog();
            if (cWindow.ValueAccepted)
            {
                latTextBox.BeginChange();
                latTextBox.Text = cWindow.Coordinate.Lat.ToString().Replace(',', '.');
                latTextBox.EndChange();
                lonTextBox.BeginChange();
                lonTextBox.Text = cWindow.Coordinate.Lon.ToString().Replace(',', '.');;
                lonTextBox.EndChange();
            }
        }
Example #2
0
        private void btnShowMap_Click(object sender, RoutedEventArgs e)
        {
            Button        button          = (Button)sender;
            Mission       attachedMission = (Mission)button.Tag;
            CoordinateDto dto             = new CoordinateDto()
            {
                Lat = attachedMission.CenterLat, Lon = attachedMission.CenterLon
            };

            CoordinateWindow.Window.Implementation.CoordinateWindow cWindow = new CoordinateWindow.Window.Implementation.CoordinateWindow {
                Coordinate = dto
            };
            cWindow.ReadOnly = true;
            cWindow.ShowDialog();
        }
Example #3
0
 private void btnShowMap_Click(object sender, RoutedEventArgs e)
 {
     Button button = (Button)sender;
     Mission attachedMission = (Mission)button.Tag;
     CoordinateDto dto = new CoordinateDto(){Lat = attachedMission.CenterLat, Lon = attachedMission.CenterLon};
     CoordinateWindow.Window.Implementation.CoordinateWindow cWindow = new CoordinateWindow.Window.Implementation.CoordinateWindow{Coordinate = dto};
     cWindow.ReadOnly = true;
     cWindow.ShowDialog();
 }
Example #4
0
 private void BtnShowMapObjectClick(object sender, RoutedEventArgs e)
 {
     CoordinateDto dto = new CoordinateDto() { Lat = double.Parse(latTextBox.Text.Replace('.', ',')), Lon = double.Parse(lonTextBox.Text.Replace('.', ',')) };
     CoordinateWindow.Window.Implementation.CoordinateWindow cWindow = new CoordinateWindow.Window.Implementation.CoordinateWindow { Coordinate = dto };
     if (_isguest) cWindow.ReadOnly = true;
     cWindow.ShowDialog();
     if (cWindow.ValueAccepted)
     {
         latTextBox.BeginChange();
         latTextBox.Text = cWindow.Coordinate.Lat.ToString().Replace(',','.');
         latTextBox.EndChange();
         lonTextBox.BeginChange();
         lonTextBox.Text = cWindow.Coordinate.Lon.ToString().Replace(',', '.'); ;
         lonTextBox.EndChange();
     }
 }