예제 #1
0
        private AppManager()
        {
            //Set All Tab Pages
            AllTabPages = new ObservableCollection <MainPageMenuItem>(new[]
            {
                new MainPageMenuItem {
                    Id = 0, Title = "Federal"
                },
                new MainPageMenuItem {
                    Id = 1, Title = "State"
                },
                new MainPageMenuItem {
                    Id = 2, Title = "Local"
                },
                new MainPageMenuItem {
                    Id = 3, Title = "Settings"
                }
            });

            //Set Themes
            Dictionary <string, AppTheme> Themes = new Dictionary <string, AppTheme>()
            {
                //Seasonal Themes
                //{ "Halloween", new AppTheme("#F26430", "#3A3337", "#1A1A1A" ) },

                //Standard Themes
                { "Default", new AppTheme("#F9F3EB", "#CF1942", "#1D407C") },
                { "Light", new AppTheme("#FFFFFF", "#2081CC", "#596977") },
                { "Dark", new AppTheme("#FFFFFF", "#3A3337", "#1A1A1A") },
            };

            AppThemeManager.Create(Themes);
        }
예제 #2
0
        private AppManager()
        {
            //Set Themes
            Dictionary <string, AppTheme> Themes = new Dictionary <string, AppTheme>()
            {
                { "Default", new AppTheme("#FFFFFF", "#000000", "#336699", "#424242") }
            };

            AppThemeManager.Create(Themes);
        }
예제 #3
0
        public static void Create(Dictionary <string, AppTheme> Themes)
        {
            //Make Sure It Has Not Yet Been Created
            if (ClassInstance != null)
            {
                throw new Exception("The AppThemeManager Has Already Been Created!");
            }

            //Make Sure There Are Themes
            if (Themes == null || Themes.Count == 0)
            {
                throw new Exception("The Themes Cannot Be Null And Must Have At Least One Value!");
            }

            //Create The Instance
            ClassInstance = new AppThemeManager(Themes);
        }