private void okButton_Click(object sender, EventArgs e)
        {
            CoordinateSystemDef cs = (csListBox.SelectedItem as CoordinateSystemDef);
            if (cs == null)
            {
                MessageBox.Show("You haven't selected a coordinate system");
                return;
            }

            m_SelectedSystem = cs;
            this.DialogResult = DialogResult.OK;
            Close();
        }
Exemplo n.º 2
0
        private void okButton_Click(object sender, EventArgs e)
        {
            CoordinateSystemDef cs = (csListBox.SelectedItem as CoordinateSystemDef);

            if (cs == null)
            {
                MessageBox.Show("You haven't selected a coordinate system");
                return;
            }

            m_SelectedSystem  = cs;
            this.DialogResult = DialogResult.OK;
            Close();
        }
Exemplo n.º 3
0
        private void csListBox_SelectedValueChanged(object sender, EventArgs e)
        {
            CoordinateSystemDef csDef = (csListBox.SelectedItem as CoordinateSystemDef);

            csPropertyGrid.SelectedObject = csDef;
        }