/// <summary> /// Click event handler of the buttonProjection control. /// </summary> /// <param name="sender">The source object of this event.</param> /// <param name="e">The event parameters.</param> private void buttonProjection_Click(object sender, EventArgs e) { if (projDialog == null) { projDialog = new ProjectionBrowserDialog(); } projDialog.Projection = textBoxProjection.Text; if (projDialog.ShowDialog(this) == DialogResult.OK) { textBoxProjection.Text = projDialog.Projection; textBoxProjection.Tag = projDialog.ProjectionNative; } }
/// <summary> /// Click event handler of the buttonProjection control. /// </summary> /// <param name="sender">The source object of this event.</param> /// <param name="e">The event parameters.</param> private void buttonProjection_Click(object sender, EventArgs e) { if (projDialog == null) { projDialog = new ProjectionBrowserDialog(); } projDialog.HelpRequested += new HelpEventHandler(MapPropertyEditor_HelpRequested); projDialog.Projection = textBoxProjection.Text; if (projDialog.ShowDialog(this) == DialogResult.OK) { textBoxProjection.Text = projDialog.Projection; textBoxProjection.Tag = projDialog.ProjectionNative; comboBoxUnits.SelectedItem = MapUtils.GetMapUnitFromProj4(textBoxProjection.Tag.ToString()); } }