Exemple #1
0
        public static void Register(ThemeCache c)
        {
            lock (_lock)
            {
                if (Inst != null)
                {
                    throw new NotSupportedException();
                }

                Inst = new ThemeManager(c);
            }
        }
Exemple #2
0
 private ThemeManager(ThemeCache c)
 {
     Cache            = c;
     CurrentBaseTheme = c.GetFallback();
 }
 public ThemeCacheTest()
 {
     themeCache = new(new(null, options => { }) );
 }