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(); }
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(); }
private void csListBox_SelectedValueChanged(object sender, EventArgs e) { CoordinateSystemDef csDef = (csListBox.SelectedItem as CoordinateSystemDef); csPropertyGrid.SelectedObject = csDef; }