コード例 #1
0
 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();
 }
コード例 #6
0
        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);
        }