Exemple #1
0
        /// <summary>
        /// New project
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MenuItem_Click_2(object sender, RoutedEventArgs e)
        {
            Window2 win    = new Window2();
            bool?   result = win.ShowDialog();

            if (result.HasValue && result.Value)
            {
                core.settings = win.settings;
                RefreshStatusBar();
            }
        }
Exemple #2
0
        /// <summary>
        /// New project
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MenuItem_Click_2(object sender, RoutedEventArgs e)
        {
            Window2 win    = new Window2();
            bool?   result = win.ShowDialog();

            if (result.HasValue && result.Value)
            {
                settings = win.settings;

                StartLat.Text    = String.Format("Lat : {0}", settings.StartLatitude);
                StartLon.Text    = String.Format("Lon : {0}", settings.StartLongitude);
                PixelWidth.Text  = String.Format("Pix X: {0}", settings.ImageWidth);
                PixelHeight.Text = String.Format("Pix Y: {0}", settings.ImageHeight);
                Scale.Text       = String.Format("Pix Scale: {0}", settings.PixelWidthInMetres);
                UMercator.Text   = String.Format("Mercator : {0}", settings.UseMercatorProjection);
            }
        }