private void Wizard_Load(object sender, System.EventArgs e) { refreshLink_LinkClicked(sender, null); Array recentItems = RegistryHelper.getInstance().GetRecentlyLoadedItems(); for (int i = 0; i < recentItems.Length; i++) { string val = (string)recentItems.GetValue(0, i); if (val != null) { cmbx_FileInput.Items.Add(recentItems.GetValue(0, i)); } } }
private void okButton_Click(object sender, System.EventArgs e) { RegistryHelper helper = RegistryHelper.getInstance(); if (this.displayStartupCheckBox.Checked) { helper.SetNeedToRunWizardAtStartup(true); helper.SetNeedToRunLaunchPad(this.startWithLaunchPadRadioButton.Checked); helper.SetNeedToRunWizard(this.startWithWizardRadioButton.Checked); } else { helper.SetNeedToRunWizardAtStartup(false); } }
public PreferencesDialog() { // // Required for Windows Form Designer support // InitializeComponent(); // get preferences and set the controls to match RegistryHelper helper = RegistryHelper.getInstance(); bool displayStartup = helper.GetNeedToRunWizardAtStartup(); this.displayStartupCheckBox.Checked = displayStartup; this.startWithLaunchPadRadioButton.Enabled = displayStartup; this.startWithWizardRadioButton.Enabled = displayStartup; this.startWithLaunchPadRadioButton.Checked = helper.GetWizardToRun().Equals(0); this.startWithWizardRadioButton.Checked = helper.GetWizardToRun().Equals(1); }