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

initWidgetSettings() private method

Inits the controls in the dialog box based on settings
private initWidgetSettings ( ACATPreferences prefs ) : void
prefs ACATPreferences ACAT settings
return void
        private void initWidgetSettings(ACATPreferences prefs)
        {
            var rootWidget = _dialogCommon.GetRootWidget();

            (rootWidget.Finder.FindChild(pbDynamicLearning.Name) as CheckBoxWidget).SetState(prefs.EnableWordPredictionDynamicModel);
            (rootWidget.Finder.FindChild(pbUseCorpus.Name) as CheckBoxWidget).SetState(prefs.EnableWordPredictionCorpusModel);
            (rootWidget.Finder.FindChild(tbWordCount.Name) as SliderWidget).SetState(prefs.WordPredictionCount, SliderWidget.SliderUnitsOnes);
        }