public BasicAppConfigurationDialog(Core.AppLauncher.Templates.SDKApplication app) { InitializeComponent(); if (app != Core.AppLauncher.Templates.SDKApplication.None) { Init((int)app); } else { Init(0); } }
private void okButton_Click(object sender, EventArgs e) { DialogResult = DialogResult.OK; SelectedApplication = (Core.AppLauncher.Templates.SDKApplication)appComboBox.SelectedIndex; Close(); }
void Init(int selectedId) { appComboBox.SelectedIndex = selectedId; SelectedApplication = (Core.AppLauncher.Templates.SDKApplication)selectedId; }