Exemple #1
0
        public static Background GetEditorRenderBackground()
        {
            if (Enum.TryParse(AppVM.GetSetting("diagrameditor.renderbackground"), out Background result))
            {
                return(result);
            }

            return(Background.None);
        }
        public static bool GetEnhancedCopy()
        {
            if (bool.TryParse(AppVM.GetSetting("integration.enhancedcopy"), out bool result))
            {
                return(result);
            }

            return(false);
        }
Exemple #3
0
        public static ReleaseChannel GetReleaseChannel()
        {
            try
            {
                return((ReleaseChannel)Enum.Parse(typeof(ReleaseChannel), AppVM.GetSetting("app.releasechannel")));
            }
            catch (Exception) { }

            return(ReleaseChannel.Official);
        }
Exemple #4
0
        public static Background GetRenderBackground()
        {
            Background result;

            if (Enum.TryParse(AppVM.GetSetting("app.renderbackground"), out result))
            {
                return(result);
            }

            return(Background.None);
        }