ACAT.Extensions.Default.UI.Dialogs.GeneralSettingsForm.initWidgetSettings C# (CSharp) Method

initWidgetSettings() private method

Initializes the state of all the widgets in the form with values from the settings.
private initWidgetSettings ( ACATPreferences prefs ) : void
prefs ACATPreferences ACAT Preferences
return void
        private void initWidgetSettings(ACATPreferences prefs)
        {
            var rootWidget = _dialogCommon.GetRootWidget();

            ((CheckBoxWidget)(rootWidget.Finder.FindChild(pbScannerAutoSaveLastPosition.Name))).SetState(prefs.AutoSaveScannerLastPosition);
            ((CheckBoxWidget)(rootWidget.Finder.FindChild(pbHideScannersOnIdle.Name))).SetState(prefs.HideScannerOnIdle);
            ((CheckBoxWidget)(rootWidget.Finder.FindChild(pbShowGlass.Name))).SetState(prefs.EnableGlass);
            ((CheckBoxWidget)(rootWidget.Finder.FindChild(pbShowTalkWindowOnStartup.Name))).SetState(prefs.ShowTalkWindowOnStartup);
            ((CheckBoxWidget)(rootWidget.Finder.FindChild(pbRetainTalkWindowText.Name))).SetState(prefs.RetainTalkWindowContentsOnHide);
            ((CheckBoxWidget)(rootWidget.Finder.FindChild(pbEnableDebugTraceLogging.Name))).SetState(prefs.DebugMessagesEnable);
            ((CheckBoxWidget)(rootWidget.Finder.FindChild(pbEnableAuditLog.Name))).SetState(prefs.AuditLogEnable);
            ((CheckBoxWidget)(rootWidget.Finder.FindChild(pbExpandAbbreviationsOnSeparator.Name))).SetState(prefs.ExpandAbbreviationsOnSeparator);
        }