public void InitForm(frmMain mainForm) { _mainForm = mainForm; int period = (int)(Config.CheckUpdatePeriod / 7) - 1; if (period < 0 || period > 3) { period = 1; } cboCheckUpdatePeriod.SelectedIndex = period; chkCheckUpdateEnabled.Checked = Config.CheckUpdateEnabled; nudRecentPluginList.Value = Config.RecentPluginList; chkAutoSaveBookmarkEnabled.Checked = Config.ClassEditorAutoSaveBookmarkEnabled; chkAutoOpenDroppedAssembly.Checked = Config.ClassEditorAutoOpenDroppedAssemblyEnabled; lblRtbFont.Font = Config.ClassEditorRichTextBoxFont; if (ShellExtUtils.IsSAERegistered()) { chkIntegrateWithExplorer.Checked = true; } else { chkIntegrateWithExplorer.Checked = false; } cboBamlTranslator.SelectedIndex = Config.ClassEditorBamlTranslator; chkIntegrateWithExplorer.Enabled = ShellExtUtils.IsAdministrator(); }