private void InitFolderSelect() { matlab_registry_x64 = GetMatlabRootFromRegistry(Platform.X64); APIPanel.SetFolderSelectItems(this.FolderSelect, matlab_registry_x64); if (matlab_registry_x64 == null) { this.FolderSelect.SelectedIndex = -1; } else { this.FolderSelect.SelectedIndex = 0; } }
private void PlatformRadio_32_CheckedChanged(object sender, EventArgs e) { RadioButton r = sender as RadioButton; if (r.Checked) { bool had_idx = (this.FolderSelect.SelectedIndex != -1); APIPanel.SetFolderSelectItems(this.FolderSelect, matlab_registry_x86); if (had_idx) { this.FolderSelect.SelectedItem = this.FolderSelect.Items[0]; } } }