public void Init()
        {
            OutputManager.Init();
            PowerPointManager.Instance.SettingsChanged += (o, e) => OutputManager.UpdateColors();

            HelpManager.LoadHelpLinks();

            ThemeManager.Load();
            PowerPointManager.Instance.SettingsChanged += (o, e) => ThemeManager.Load();

            TabPageManager  = new TabPageManager(Core.AdSchedule.ResourceManager.Instance.TabsConfigFile);
            ActivityManager = ActivityManager.OpenStorage();
            Gallery1Manager = new GalleryManager(Core.AdSchedule.ResourceManager.Instance.Gallery1ConfigFile);
            Gallery2Manager = new GalleryManager(Core.AdSchedule.ResourceManager.Instance.Gallery2ConfigFile);
            RateCardManager = new RateCardManager(Core.Common.ResourceManager.Instance.RateCardFolder);
            RateCardManager.LoadRateCards();
        }
Ejemplo n.º 2
0
        public async Task Init()
        {
            await AppProfileManager.Instance.LoadProfile();

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

            PowerPointManager.Init();

            MasterWizardManager.Instance.Load();
            await Business.Dashboard.Configuration.SettingsManager.Instance.LoadSettings();

            Business.Dashboard.Dictionaries.ListManager.Instance.Init();
            HelpManager.LoadHelpLinks();

            ActivityManager = ActivityManager.OpenStorage();
            ActivityManager.AddActivity(new UserActivity("Application started"));

            SetCultureSettings();
        }
Ejemplo n.º 3
0
        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"));
        }
Ejemplo n.º 4
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();
            })
                                                );
        }