Beispiel #1
0
 internal static void ApplyEditorDefaults()
 {
     Props.Set(ConfigProperties.PreviewLocale, DefaultPreviewLocale);
     Props.Set(ConfigProperties.ValidateOnSave, DefaultValidateOnSave);
     Props.Set(ConfigProperties.XsdSchemaPath, DefaultXsdSchemaPath);
     Props.Set(ConfigProperties.UseLocalPreview, DefaultUseLocalPreview);
     Props.Set(ConfigProperties.UseGridStyleEditor, DefaultUseGridStyleEditor);
 }
        private bool Apply <T>(string key, T newValue)
        {
            if (Props.Get <T>(key, newValue).Equals(newValue))
            {
                return(false);
            }

            Props.Set <T>(key, newValue);
            return(true);
        }
Beispiel #3
0
 internal static void ApplyGeneralDefaults()
 {
     Props.Set(ConfigProperties.SelectedTheme, DefaultSelectedTheme);
     Props.Set(ConfigProperties.PreviewViewerType, DefaultPreviewViewerType);
     Props.Set(ConfigProperties.UserTemplatesDirectory, DefaultUserTemplatesDirectory);
     Props.Set(ConfigProperties.ShowMessages, DefaultShowMessages);
     Props.Set(ConfigProperties.ShowOutboundRequests, DefaultShowOutboundRequests);
     Props.Set(ConfigProperties.OpenColor, DefaultOpenColor);
     Props.Set(ConfigProperties.DirtyColor, DefaultDirtyColor);
     Props.Set(ConfigProperties.MgCookerPath, DefaultMgCookerPath);
     Props.Set(ConfigProperties.RtMapInspectorPath, DefaultRtMapInspectorPath);
     Props.Set(ConfigProperties.LocalFsPreviewPath, DefaultLocalFsPreviewPath);
     Props.Set(ConfigProperties.ShowTipOfTheDay, DefaultShowTipOfTheDay);
     Props.Set(ConfigProperties.LiveMapEditorPath, DefaultLiveMapEditorPath);
 }