private void bld_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     if (_dlg.SpatialReference != null)
     {
         System.Windows.MessageBox.Show(string.Format("You picked {0}", _dlg.SpatialReference.Name), "Pick Coordinate System");
         Mediator.NotifyColleagues(CoordinateConversionLibrary.Constants.SpatialReferenceSelected, string.Format("{0}::{1}", _dlg.SpatialReference.Wkid, _dlg.SpatialReference.Name));
     }
     _dlg    = null;
     _isOpen = false;
 }
예제 #2
0
 void bld_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     if (_dlg.SpatialReference != null)
     {
         MessageBox.Show(string.Format("You picked {0}", _dlg.SpatialReference.Name), "Pick Coordinate System");
         //Do something with the selected spatial reference
         //....
     }
     _dlg    = null;
     _isOpen = false;
 }
예제 #3
0
        private void bld_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            if (_dlg.SpatialReference != null)
            {
                //ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show(string.Format("You picked {0}", _dlg.SpatialReference.Name), "Pick Coordinate System");

                CoordinateSystem         = _dlg.SpatialReference.Name;
                selectedSpatialReference = _dlg.SpatialReference;
            }
            _dlg    = null;
            _isOpen = false;
        }
예제 #4
0
 public void OpenCoordinateSystemExecute()
 {
     if (_isOpen)
     {
         return;
     }
     _isOpen       = true;
     _dlg          = new CoordSysDialog();
     _dlg.Closing += bld_Closing;
     _dlg.Owner    = FrameworkApplication.Current.MainWindow;
     _dlg.Show();
 }
예제 #5
0
 protected override void OnClick()
 {
     if (_isOpen)
     {
         return;
     }
     _isOpen       = true;
     _dlg          = new CoordSysDialog();
     _dlg.Closing += bld_Closing;
     _dlg.Owner    = FrameworkApplication.Current.MainWindow;
     _dlg.Show();
 }
        public override bool SelectSpatialReference()
        {
            if (_isOpen)
            {
                return(false);
            }

            _isOpen       = true;
            _dlg          = new CoordSysDialog();
            _dlg.Closing += bld_Closing;
            _dlg.Show();

            return(false);
        }
예제 #7
0
파일: MainForm.cs 프로젝트: batuZ/Samples
        private void btnSelectTargetWKT_Click(object sender, EventArgs e)
        {
            ICoordSysDialog dialog = new CoordSysDialog();

            this.textTargetWKT.Text = dialog.ShowDialog(gviLanguage.gviLanguageChineseSimple);
        }