예제 #1
0
        private bool _Upgrade(GraphTheme graphTheme)
        {
            if (Options.LATESTOPTIONSVERSION > this.OptionsVersion)
            {
                switch (this.OptionsVersion)
                {
                case 0:
                //this.OptionsVersion = LATESTOPTIONSVERSION;
                //return true;
                case 1:
                    if (GraphTheme.IsCustom(graphTheme))
                    {
                        this.ThemeType = ThemeList.CUSTOM;
                    }
                    else
                    {
                        this.ThemeType = ThemeList.AUTOMATIC;
                    }
                    this.OptionsVersion = LATESTOPTIONSVERSION;
                    return(true);

                default:
                    break;
                }
            }
            return(false);
        }
 public bool IsCustomTheme()
 {
     return(GraphTheme.IsCustom(this.defaultTheme));
 }