public async Task LoadSettings()
        {
            Asa.Common.Core.Configuration.SettingsManager.Instance.LoadSharedSettings();

            ThemeManager = new ThemeManager();
            ThemeManager.Load();
            SlideSettingsManager.Instance.SettingsChanged += (o, e) => ThemeManager.Load();
            InitThemeHelper(ThemeManager);

            SlideManager = new SlideManager();
            SlideManager.LoadSlides(Asa.Common.Core.Configuration.ResourceManager.Instance.SlideMastersFolder);

            LoadDashboardSettings();
        }
        public async Task Init()
        {
            await AppProfileManager.Instance.LoadProfile();

            await Business.Dashboard.Configuration.ResourceManager.Instance.Load();

            PowerPointManager.Init();

            MasterWizardManager.Instance.Load();
            SettingsManager.Instance.LoadSharedSettings();
            SlideManager.LoadSlides(ResourceManager.Instance.SlideMastersFolder);

            HelpManager.LoadHelpLinks();

            TextResourcesManager.Load();
            ImageResourcesManager.Load();

            FormStyleManager = new FormStyleManager(Business.Dashboard.Configuration.ResourceManager.Instance.FormStyleConfigFile);

            ActivityManager = ActivityManager.OpenStorage();
            ActivityManager.AddActivity(new UserActivity("Application started"));
        }
Beispiel #3
0
        public void Init()
        {
            PowerPointManager.Init();
            ListManager.Instance.Load();
            ThemeManager.Load();
            SlideSettingsManager.Instance.SettingsChanged += (o, e) => ThemeManager.Load();
            HelpManager.LoadHelpLinks();
            RibbonTabPageManager = new RibbonTabPageManager(ResourceManager.Instance.TabsConfigFile);
            BrowserManager.Init(ResourceManager.Instance.BrowserConfigFile);

            FormStyleManager = new FormStyleManager(ResourceManager.Instance.FormStyleConfigFile);
            ActivityManager  = ActivityManager.OpenStorage();
            ConfigManager.LoadConfig(ResourceManager.Instance.ConfigFile);
            TextResourcesManager.LoadTextResources(ResourceManager.Instance.TextResourcesFile);
            TextResourcesManager.LoadTabPageSettings(ResourceManager.Instance.AdditionalTextResourcesFile);
            IdleManager.LoadSettings(ResourceManager.Instance.IdleSettingsFile);

            AdditionalInitializator.Actions.Add(new InitAction(
                                                    new[]
            {
                ContentIdentifiers.ScheduleSettings,
                ContentIdentifiers.ProgramSchedule,
                ContentIdentifiers.Snapshots,
                ContentIdentifiers.Options,
                ContentIdentifiers.DigitalProducts,
                ContentIdentifiers.BroadcastCalendar,
                ContentIdentifiers.CustomCalendar,
            },
                                                    () =>
            {
                MediaMetaData.Instance.ListManager.Load();
                Business.Online.Dictionaries.ListManager.Instance.Load(Common.Core.Configuration.ResourceManager.Instance.OnlineListsFile);
                OutputManager.Init();
                SlideSettingsManager.Instance.SettingsChanged += (o, e) => OutputManager.UpdateColors();
            })
                                                );

            if (FileStorageManager.Instance.DataState == DataActualityState.Updated ||
                FileStorageManager.Instance.UseLocalMode)
            {
                AdditionalInitializator.Actions.Add(new InitAction(
                                                        new[]
                {
                    ContentIdentifiers.Solutions
                },
                                                        () =>
                {
                    SolutionsManager.LoadSolutions(ResourceManager.Instance.SolutionsConfigFile);
                    SolutionsManager.LoadSolutionData(ResourceManager.Instance.SolutionsDataFolder);
                })
                                                    );
            }
            else
            {
                SolutionsManager.LoadSolutions(ResourceManager.Instance.SolutionsConfigFile);
                SolutionsManager.LoadSolutionData(ResourceManager.Instance.SolutionsDataFolder);
            }

            AdditionalInitializator.Actions.Add(new InitAction(
                                                    new[]
            {
                ContentIdentifiers.Slides
            },
                                                    () =>
            {
                SlideManager.LoadSlides(Common.Core.Configuration.ResourceManager.Instance.SlideMastersFolder);
            })
                                                );

            AdditionalInitializator.Actions.Add(new InitAction(
                                                    new[]
            {
                ContentIdentifiers.Gallery1,
            },
                                                    () =>
            {
                Gallery1Manager = new GalleryManager(ResourceManager.Instance.Gallery1ConfigFile);
            })
                                                );

            AdditionalInitializator.Actions.Add(new InitAction(
                                                    new[]
            {
                ContentIdentifiers.Gallery2,
            },
                                                    () =>
            {
                Gallery2Manager = new GalleryManager(ResourceManager.Instance.Gallery2ConfigFile);
            })
                                                );

            AdditionalInitializator.Actions.Add(new InitAction(
                                                    new[]
            {
                ContentIdentifiers.RateCard
            },
                                                    () =>
            {
                RateCardManager = new RateCardManager(Common.Core.Configuration.ResourceManager.Instance.RateCardFolder);
                RateCardManager.LoadRateCards();
            })
                                                );
        }