Exemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();
            _barRating            = new BarRating();
            LatitudeTextBox.Text  = _defaultLatitude;
            LongitudeTextBox.Text = _defaultLongitude;
            var latitude  = Convert.ToDouble(_defaultLatitude, CultureInfo.InvariantCulture);
            var longitude = Convert.ToDouble(_defaultLongitude, CultureInfo.InvariantCulture);

            CurrentLocation.currentLocation = new GeoCoordinate(latitude, longitude);
            RadiusTextBox.Text = _defaultRadius;
        }
        public MainWindow()
        {
            InitializeComponent();
            _barRating = new BarRating();
            var location        = new CurrentLocation();
            var currentLocation = location.currentLocation;
            var latitude        = currentLocation.Latitude.ToString(CultureInfo.InvariantCulture);
            var longitude       = currentLocation.Longitude.ToString(CultureInfo.InvariantCulture);

            LatitudeTextBox.Text  = latitude;
            LongitudeTextBox.Text = longitude;
            RadiusTextBox.Text    = defaultRadius;
        }