コード例 #1
0
        /// <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;
            }
        }
コード例 #2
0
        /// <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());
            }
        }
コード例 #3
0
        /// <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(LayerPropertyEditor_HelpRequested);
            projDialog.Projection = textBoxProjection.Text;
            if (projDialog.ShowDialog(this) == DialogResult.OK)
            {
                textBoxProjection.Text = projDialog.Projection;
                textBoxProjection.Tag = projDialog.ProjectionNative;
            }
        }
コード例 #4
0
        /// <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());
            }
        }