예제 #1
0
 private void btnSelect_Click(object sender, EventArgs e)
 {
     using (var dialog = new ProjectionSelectDialog {SelectedCoordinateSystem = SelectedCoordinateSystem})
     {
         if (dialog.ShowDialog(this) != DialogResult.OK) return;
         SelectedCoordinateSystem = dialog.SelectedCoordinateSystem;
     }
 }
예제 #2
0
        private void btnSelect_Click(object sender, EventArgs e)
        {
            ProjectionSelectDialog dialog = new ProjectionSelectDialog();

            dialog.SelectedCoordinateSystem = SelectedCoordinateSystem;
            if (dialog.ShowDialog(this) != DialogResult.OK)
            {
                return;
            }
            SelectedCoordinateSystem = dialog.SelectedCoordinateSystem;
        }
        private void BtnSelectClick(object sender, EventArgs e)
        {
            using var dialog = new ProjectionSelectDialog
                  {
                      SelectedCoordinateSystem = SelectedCoordinateSystem
                  };
            if (dialog.ShowDialog(this) != DialogResult.OK)
            {
                return;
            }

            SelectedCoordinateSystem = dialog.SelectedCoordinateSystem;
        }
 private void btnChangeProjection_Click(object sender, EventArgs e)
 {
     ProjectionSelectDialog projDialog = new ProjectionSelectDialog();
     projDialog.SelectedCoordinateSystem = _projection;
     if (projDialog.ShowDialog() == DialogResult.OK)
     {
         _projection = projDialog.SelectedCoordinateSystem;
         UpdateProjectionStrings();
         _changesApplied = false;
     }
 }
 private void btnChangeToSelected_Click(object sender, EventArgs e)
 {
     using (var pf = new ProjectionSelectDialog())
     {
         pf.SelectedCoordinateSystem = Projection;
         pf.ChangesApplied += PfOnChangesApplied;
         pf.ShowDialog(this);
         pf.ChangesApplied -= PfOnChangesApplied;
     }
 }
 private void btnSelect_Click(object sender, EventArgs e)
 {
     ProjectionSelectDialog dialog = new ProjectionSelectDialog();
     dialog.SelectedCoordinateSystem = SelectedCoordinateSystem;
     if (dialog.ShowDialog(this) != DialogResult.OK) return;
     SelectedCoordinateSystem = dialog.SelectedCoordinateSystem;
 }
예제 #7
0
 private void CmdSelectClick(object sender, EventArgs e)
 {
     ProjectionSelectDialog dlg = new ProjectionSelectDialog();
     if (dlg.ShowDialog() != DialogResult.OK) return;
     if (Param == null)
     {
         Param = new ProjectionParam("destination projection", dlg.SelectedCoordinateSystem);
     }
     else
     {
         Param.Value = dlg.SelectedCoordinateSystem;
     }
     lblProjection.Text = Param.Value.ToProj4String();
     _tthelp.SetToolTip(lblProjection, Param.Value.ToProj4String());
 }