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(); } }
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(); }
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(); }
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(); } }