Beispiel #1
0
        public void InitForm()
        {
            FormProgress.Init(this);

            var threadRunner = new ThreadRunner();
            var webView      = threadRunner.CreateWebView();

            webView.Destroy();

            LoadSettings();

            Text = AppSettingsManager.Instance.FormText ?? Text;
            Icon = AppSettingsManager.Instance.FormIcon ?? Icon;

            if (AppSettingsManager.Instance.AccentColor.HasValue)
            {
                styleManager.MetroColorParameters = new MetroColorGeneratorParameters(
                    styleManager.MetroColorParameters.CanvasColor,
                    AppSettingsManager.Instance.AccentColor.Value);
            }

            if (AppSettingsManager.Instance.StatusBarTextColor.HasValue)
            {
                labelItemAppTitle.ForeColor = AppSettingsManager.Instance.StatusBarTextColor.Value;
                labelItemUrl.ForeColor      = AppSettingsManager.Instance.StatusBarTextColor.Value;
            }

            _siteBundleContainer.LoadSites(AppSettingsManager.Instance.Sites.OfType <SiteSettings>().ToList());

            ExternalBrowserManager.Load();

            _siteBundleContainer.ButtonNavigationBack.Image = ResourceManager.Instance.BrowserNavigationBack ??
                                                              _siteBundleContainer.ButtonNavigationBack.Image;
            _siteBundleContainer.ButtonNavigationForward.Image = ResourceManager.Instance.BrowserNavigationForward ??
                                                                 _siteBundleContainer.ButtonNavigationForward.Image;
            _siteBundleContainer.ButtonNavigationRefresh.Image = ResourceManager.Instance.BrowserNavigationRefresh ??
                                                                 _siteBundleContainer.ButtonNavigationRefresh.Image;
            _siteBundleContainer.ButtonExtensionsAddSlide.Image = ResourceManager.Instance.BrowserPowerPointAddSlide ??
                                                                  _siteBundleContainer.ButtonExtensionsAddSlide.Image;
            _siteBundleContainer.ButtonExtensionsAddSlides.Image = ResourceManager.Instance.BrowserPowerPointAddSlides ??
                                                                   _siteBundleContainer.ButtonExtensionsAddSlides.Image;
            _siteBundleContainer.ButtonExtensionsPrint.Image = ResourceManager.Instance.BrowserPowerPointPrint ??
                                                               _siteBundleContainer.ButtonExtensionsPrint.Image;
            _siteBundleContainer.ButtonExtensionsAddVideo.Image = ResourceManager.Instance.BrowserVideoAdd ??
                                                                  _siteBundleContainer.ButtonExtensionsAddVideo.Image;
            _siteBundleContainer.ButtonExtensionsDownloadYouTube.Image = ResourceManager.Instance.BrowserYoutubeAdd ??
                                                                         _siteBundleContainer.ButtonExtensionsDownloadYouTube.Image;

            buttonItemFloater.Image = ResourceManager.Instance.BrowserFloater ??
                                      buttonItemFloater.Image;

            LoadUrlActionButtons();
        }
Beispiel #2
0
        public PreviewGroupControl(
            OutputGroup outputGroup,
            PowerPointProcessor mainPowerPointProcessor,
            Form parentForm,
            FormPreview previewForm)
        {
            OutputGroup = outputGroup;
            _mainPowerPointProcessor = mainPowerPointProcessor;
            _parentForm  = parentForm;
            _previewForm = previewForm;

            InitializeComponent();

            Text = OutputGroup.Name;

            FormProgress.Init(_parentForm);

            xtraTabControlItems.TabPages.AddRange(outputGroup.Items.Select(previewItem => new PreviewItemControl(previewItem)).ToArray());
            xtraTabControlItems.ShowTabHeader   = xtraTabControlItems.TabPages.Count > 1 ? DefaultBoolean.True : DefaultBoolean.False;
            xtraTabControlItems.SelectedTabPage = xtraTabControlItems.TabPages
                                                  .OfType <PreviewItemControl>()
                                                  .FirstOrDefault(previewControl => previewControl.OutputItem.IsCurrent) ?? xtraTabControlItems.SelectedTabPage;
            xtraTabControlItems.SelectedPageChanged += OnSelectedPreviewItemChanged;
        }
Beispiel #3
0
 private void OnFormLoad(object sender, EventArgs e)
 {
     PopupMessageHelper.Instance.Title = Text;
     FormProgress.Init(this);
     _convertManager.Init();
 }
        public void Init()
        {
            FormStateHelper.Init(this,
                                 Common.Core.Configuration.ResourceManager.Instance.AppSettingsFolder,
                                 MediaMetaData.Instance.DataTypeString,
                                 false)
            .LoadState();

            Icon = BusinessObjects.Instance.ImageResourcesManager.MainAppIcon ?? Icon;

            buttonItemApplicationMenuNew.Image = BusinessObjects.Instance.ImageResourcesManager.MainMenuNewImage ??
                                                 buttonItemApplicationMenuNew.Image;
            buttonItemApplicationMenuOpen.Image = BusinessObjects.Instance.ImageResourcesManager.MainMenuOpenImage ??
                                                  buttonItemApplicationMenuOpen.Image;
            buttonItemApplicationMenuSave.Image = BusinessObjects.Instance.ImageResourcesManager.MainMenuSaveImage ??
                                                  buttonItemApplicationMenuSave.Image;
            buttonItemApplicationMenuSaveAs.Image = BusinessObjects.Instance.ImageResourcesManager.MainMenuSaveAsImage ??
                                                    buttonItemApplicationMenuSaveAs.Image;
            buttonItemApplicationMenuOutputPdf.Image = BusinessObjects.Instance.ImageResourcesManager.MainMenuOutputPdfImage ??
                                                       buttonItemApplicationMenuOutputPdf.Image;
            buttonItemApplicationMenuEmail.Image = BusinessObjects.Instance.ImageResourcesManager.MainMenuEmailImage ??
                                                   buttonItemApplicationMenuEmail.Image;
            buttonItemApplicationMenuSlideSettings.Image = BusinessObjects.Instance.ImageResourcesManager.MainMenuSlideSettingsImage ??
                                                           buttonItemApplicationMenuSlideSettings.Image;
            buttonItemApplicationMenuHelp.Image = BusinessObjects.Instance.ImageResourcesManager.MainMenuHelpImage ??
                                                  buttonItemApplicationMenuHelp.Image;
            buttonItemApplicationMenuExit.Image = BusinessObjects.Instance.ImageResourcesManager.MainMenuExitImage ??
                                                  buttonItemApplicationMenuExit.Image;

            buttonItemApplicationMenuMediaSettings.Visible = FileStorageManager.Instance.SubStorages.Count > 1;

            buttonItemQatSave.Image = BusinessObjects.Instance.ImageResourcesManager.QatSaveImage ??
                                      buttonItemQatSave.Image;
            buttonItemQatSaveAs.Image = BusinessObjects.Instance.ImageResourcesManager.QatSaveAsImage ??
                                        buttonItemQatSaveAs.Image;
            buttonItemQatFloater.Image = BusinessObjects.Instance.ImageResourcesManager.QatFloaterImage ??
                                         buttonItemQatFloater.Image;
            buttonItemQatHelp.Image = BusinessObjects.Instance.ImageResourcesManager.QatHelpImage ??
                                      buttonItemQatHelp.Image;

            if (BusinessObjects.Instance.ImageResourcesManager.HomeDateStartImage != null)
            {
                labelItemHomeFlightDatesStartTitle.Image  = BusinessObjects.Instance.ImageResourcesManager.HomeDateStartImage;
                labelItemHomeFlightDatesStartTitle.Width +=
                    BusinessObjects.Instance.ImageResourcesManager.HomeDateStartImage.Width - 24;
            }
            if (BusinessObjects.Instance.ImageResourcesManager.HomeDateEndImage != null)
            {
                labelItemHomeFlightDatesEndTitle.Image  = BusinessObjects.Instance.ImageResourcesManager.HomeDateEndImage;
                labelItemHomeFlightDatesEndTitle.Width +=
                    BusinessObjects.Instance.ImageResourcesManager.HomeDateEndImage.Width - 24;
            }
            ribbonBarHomeFlightDates.RecalcLayout();
            buttonItemHomeSettings.Image = BusinessObjects.Instance.ImageResourcesManager.RibbonSettingsImage ?? buttonItemHomeSettings.Image;
            ribbonBarHomeSettings.RecalcLayout();
            ribbonPanelHome.PerformLayout();

            if (BusinessObjects.Instance.ImageResourcesManager.ProgramScheduleRibbonLogo != null)
            {
                buttonItemProgramScheduleNew.Image = BusinessObjects.Instance.ImageResourcesManager.ProgramScheduleRibbonLogo;
                ribbonBarProgramScheduleNew.RecalcLayout();
            }
            buttonItemProgramSchedulePowerPoint.Image = BusinessObjects.Instance.ImageResourcesManager.RibbonOutputImage ?? buttonItemProgramSchedulePowerPoint.Image;
            ribbonBarProgramSchedulePowerPoint.RecalcLayout();
            buttonItemProgramScheduleSettings.Image = BusinessObjects.Instance.ImageResourcesManager.RibbonSettingsImage ?? buttonItemProgramScheduleSettings.Image;
            ribbonBarProgramScheduleSettings.RecalcLayout();
            ribbonPanelProgramSchedule.PerformLayout();

            if (BusinessObjects.Instance.ImageResourcesManager.SnapshotsRibbonLogo != null)
            {
                buttonItemSnapshotNew.Image = BusinessObjects.Instance.ImageResourcesManager.SnapshotsRibbonLogo;
                ribbonBarSnapshotNew.RecalcLayout();
            }
            buttonItemSnapshotPowerPoint.Image = BusinessObjects.Instance.ImageResourcesManager.RibbonOutputImage ?? buttonItemSnapshotPowerPoint.Image;
            ribbonBarSnapshotPowerPoint.RecalcLayout();
            buttonItemSnapshotSettings.Image = BusinessObjects.Instance.ImageResourcesManager.RibbonSettingsImage ?? buttonItemSnapshotSettings.Image;
            ribbonBarSnapshotSettings.RecalcLayout();
            ribbonPanelSnapshot.PerformLayout();

            if (BusinessObjects.Instance.ImageResourcesManager.OptionsRibbonLogo != null)
            {
                buttonItemOptionsNew.Image = BusinessObjects.Instance.ImageResourcesManager.OptionsRibbonLogo;
                ribbonBarOptionsNew.RecalcLayout();
            }
            buttonItemOptionsPowerPoint.Image = BusinessObjects.Instance.ImageResourcesManager.RibbonOutputImage ?? buttonItemOptionsPowerPoint.Image;
            ribbonBarOptionsPowerPoint.RecalcLayout();
            buttonItemOptionsSettings.Image = BusinessObjects.Instance.ImageResourcesManager.RibbonSettingsImage ?? buttonItemOptionsSettings.Image;
            ribbonBarOptionsSettings.RecalcLayout();
            ribbonPanelOptions.PerformLayout();

            if (BusinessObjects.Instance.ImageResourcesManager.DigitalProductsRibbonLogo != null)
            {
                buttonItemDigitalScheduleLogo.Image = BusinessObjects.Instance.ImageResourcesManager.DigitalProductsRibbonLogo;
                ribbonBarDigitalScheduleLogo.RecalcLayout();
            }
            buttonItemDigitalSchedulePowerPoint.Image = BusinessObjects.Instance.ImageResourcesManager.RibbonOutputImage ?? buttonItemDigitalSchedulePowerPoint.Image;
            ribbonBarDigitalSchedulePowerPoint.RecalcLayout();
            ribbonPanelDigitalSchedule.PerformLayout();

            buttonItemCalendar1DataSourceSchedule.Image = BusinessObjects.Instance.ImageResourcesManager.CalendarDataSourceScheduleImage ?? buttonItemCalendar1DataSourceSchedule.Image;
            ribbonBarCalendar1DataSourceSchedule.RecalcLayout();
            buttonItemCalendar1DataSourceSnapshots.Image = BusinessObjects.Instance.ImageResourcesManager.CalendarDataSourceSnapshotsImage ?? buttonItemCalendar1DataSourceSnapshots.Image;
            ribbonBarCalendar1DataSourceSnapshots.RecalcLayout();
            buttonItemCalendar1DataSourceEmpty.Image = BusinessObjects.Instance.ImageResourcesManager.CalendarDataSourceEmptyImage ?? buttonItemCalendar1DataSourceEmpty.Image;
            ribbonBarCalendar1DataSourceEmpty.RecalcLayout();
            buttonItemCalendar1Reset.Image = BusinessObjects.Instance.ImageResourcesManager.CalendarResetImage ?? buttonItemCalendar1Reset.Image;
            ribbonBarCalendar1Reset.RecalcLayout();
            buttonItemCalendar1Copy.Image  = BusinessObjects.Instance.ImageResourcesManager.CalendarDataCopyImage ?? buttonItemCalendar1Copy.Image;
            buttonItemCalendar1Paste.Image = BusinessObjects.Instance.ImageResourcesManager.CalendarDataPasteImage ?? buttonItemCalendar1Paste.Image;
            buttonItemCalendar1Clone.Image = BusinessObjects.Instance.ImageResourcesManager.CalendarDataCloneImage ?? buttonItemCalendar1Clone.Image;
            ribbonBarCalendar1Edit.RecalcLayout();
            buttonItemCalendar1PowerPoint.Image = BusinessObjects.Instance.ImageResourcesManager.RibbonOutputImage ?? buttonItemCalendar1PowerPoint.Image;
            ribbonBarCalendar1PowerPoint.RecalcLayout();
            ribbonPanelCalendar1.PerformLayout();

            buttonItemCalendar2Reset.Image = BusinessObjects.Instance.ImageResourcesManager.CalendarResetImage ?? buttonItemCalendar2Reset.Image;
            ribbonBarCalendar2Reset.RecalcLayout();
            buttonItemCalendar2Copy.Image  = BusinessObjects.Instance.ImageResourcesManager.CalendarDataCopyImage ?? buttonItemCalendar2Copy.Image;
            buttonItemCalendar2Paste.Image = BusinessObjects.Instance.ImageResourcesManager.CalendarDataPasteImage ?? buttonItemCalendar2Paste.Image;
            buttonItemCalendar2Clone.Image = BusinessObjects.Instance.ImageResourcesManager.CalendarDataCloneImage ?? buttonItemCalendar2Clone.Image;
            ribbonBarCalendar2Edit.RecalcLayout();
            buttonItemCalendar2PowerPoint.Image = BusinessObjects.Instance.ImageResourcesManager.RibbonOutputImage ?? buttonItemCalendar2PowerPoint.Image;
            ribbonBarCalendar2PowerPoint.RecalcLayout();
            ribbonPanelCalendar2.PerformLayout();

            buttonItemSolutionsPowerPoint.Image = BusinessObjects.Instance.ImageResourcesManager.RibbonOutputImage ?? buttonItemSolutionsPowerPoint.Image;
            ribbonBarSolutionsPowerPoint.RecalcLayout();
            ribbonPanelSolutions.PerformLayout();

            buttonItemSlidesPowerPoint.Image = BusinessObjects.Instance.ImageResourcesManager.RibbonOutputImage ?? buttonItemSlidesPowerPoint.Image;
            ribbonBarSlidesPowerPoint.RecalcLayout();
            ribbonPanelSlides.PerformLayout();

            if (BusinessObjects.Instance.FormStyleManager.Style.AccentColor.HasValue)
            {
                styleManager.MetroColorParameters = new MetroColorGeneratorParameters(
                    styleManager.MetroColorParameters.CanvasColor,
                    BusinessObjects.Instance.FormStyleManager.Style.AccentColor.Value);
            }

            if (BusinessObjects.Instance.ImageResourcesManager.ToggleSwitchSkinElement != null)
            {
                var element = SkinManager.GetSkinElement(SkinProductId.Editors, UserLookAndFeel.Default, "ToggleSwitch");
                element.Image.SetImage(BusinessObjects.Instance.ImageResourcesManager.ToggleSwitchSkinElement, Color.Transparent);
                LookAndFeelHelper.ForceDefaultLookAndFeelChanged();
            }

            Controller.Instance.FormMain           = this;
            Controller.Instance.MainPanelContainer = layoutControlGroupContainer;
            Controller.Instance.MainPanel          = layoutControlItemMainContainer;
            Controller.Instance.EmptyPanel         = emptySpaceItem;
            Controller.Instance.SuperTip           = superTooltip;
            Controller.Instance.Ribbon             = ribbonControl;
            Controller.Instance.TabHome            = ribbonTabItemHome;
            Controller.Instance.TabProgramSchedule = ribbonTabItemProgramSchedule;
            Controller.Instance.TabDigitalProduct  = ribbonTabItemDigitalSchedule;
            Controller.Instance.TabCalendar1       = ribbonTabItemCalendar1;
            Controller.Instance.TabCalendar2       = ribbonTabItemCalendar2;
            Controller.Instance.TabGallery1        = ribbonTabItemGallery1;
            Controller.Instance.TabGallery2        = ribbonTabItemGallery2;
            Controller.Instance.TabRateCard        = ribbonTabItemRateCard;
            Controller.Instance.TabOptions         = ribbonTabItemOptions;
            Controller.Instance.TabSnapshot        = ribbonTabItemSnapshot;
            Controller.Instance.TabSolutions       = ribbonTabItemSolutions;
            Controller.Instance.TabSlides          = ribbonTabItemSlides;

            ContentStatusBarManager.Instance.StatusBar = barBottom;
            ContentStatusBarManager.Instance.StatusBarMainItemsContainer       = itemContainerStatusBarMainContentInfo;
            ContentStatusBarManager.Instance.StatusBarAdditionalItemsContainer = itemContainerStatusBarAdditionalContentInfo;
            ContentStatusBarManager.Instance.TextColor = BusinessObjects.Instance.FormStyleManager.Style.StatusBarTextColor;

            FormProgress.Init(this);

            #region Command Controls
            Controller.Instance.QatSaveButton   = buttonItemQatSave;
            Controller.Instance.QatSaveAsButton = buttonItemQatSaveAs;
            Controller.Instance.QatHelpButton   = buttonItemQatHelp;

            Controller.Instance.MenuButtonMain          = applicationButtonApplicationMenu;
            Controller.Instance.MenuSaveButton          = buttonItemApplicationMenuSave;
            Controller.Instance.MenuSaveAsButton        = buttonItemApplicationMenuSaveAs;
            Controller.Instance.MenuOutputPdfButton     = buttonItemApplicationMenuOutputPdf;
            Controller.Instance.MenuEmailButton         = buttonItemApplicationMenuEmail;
            Controller.Instance.MenuSlideSettingsButton = buttonItemApplicationMenuSlideSettings;
            Controller.Instance.MenuHelpButton          = buttonItemApplicationMenuHelp;

            Controller.Instance.RibbonCollapseButton = buttonItemCollapse;
            Controller.Instance.RibbonExpandButton   = buttonItemExpand;
            Controller.Instance.RibbonPinButton      = buttonItemPin;

            Controller.Instance.ScheduleInfoContainer   = layoutControlGroupHeader;
            Controller.Instance.ScheduleInfoAdvertiser  = simpleLabelItemAdvertiser;
            Controller.Instance.ScheduleInfoFlightDates = simpleLabelItemFlightDates;

            #region Home
            Controller.Instance.HomePanel                 = ribbonPanelHome;
            Controller.Instance.HomeSpecialButtons        = ribbonBarHomeSpecialButtons;
            Controller.Instance.HomeBusinessName          = comboBoxEditBusinessName;
            Controller.Instance.HomeDecisionMaker         = comboBoxEditDecisionMaker;
            Controller.Instance.HomePresentationDate      = dateEditPresentationDate;
            Controller.Instance.HomeFlightDates           = ribbonBarHomeFlightDates;
            Controller.Instance.HomeFlightDatesStartTitle = labelItemHomeFlightDatesStartTitle;
            Controller.Instance.HomeFlightDatesStartValue = labelItemHomeFlightDatesStartValue;
            Controller.Instance.HomeFlightDatesEndTitle   = labelItemHomeFlightDatesEndTitle;
            Controller.Instance.HomeFlightDatesEndValue   = labelItemHomeFlightDatesEndValue;
            Controller.Instance.HomeSettings              = buttonItemHomeSettings;
            #endregion

            #region Program Schedule
            Controller.Instance.ProgramSchedulePanel             = ribbonPanelProgramSchedule;
            Controller.Instance.ProgramScheduleThemeBar          = ribbonBarProgramScheduleTheme;
            Controller.Instance.ProgramScheduleSpecialButtons    = ribbonBarProgramScheduleSpecialButtons;
            Controller.Instance.ProgramSchedulePowerPoint        = buttonItemProgramSchedulePowerPoint;
            Controller.Instance.ProgramSchedulePowerPointCurrent = buttonItemProgramSchedulePowerPointCurrent;
            Controller.Instance.ProgramSchedulePowerPointAll     = buttonItemProgramSchedulePowerPointAll;
            Controller.Instance.ProgramScheduleTheme             = buttonItemProgramScheduleTheme;
            Controller.Instance.ProgramScheduleNew           = buttonItemProgramScheduleNew;
            Controller.Instance.ProgramScheduleProgramAdd    = buttonItemProgramScheduleProgramAdd;
            Controller.Instance.ProgramScheduleProgramDelete = buttonItemProgramScheduleProgramDelete;
            Controller.Instance.ProgramScheduleSettings      = buttonItemProgramScheduleSettings;
            #endregion

            #region Digital Product
            Controller.Instance.DigitalProductPanel          = ribbonPanelDigitalSchedule;
            Controller.Instance.DigitalProductLogoBar        = ribbonBarDigitalScheduleLogo;
            Controller.Instance.DigitalProductThemeBar       = ribbonBarDigitalScheduleTheme;
            Controller.Instance.DigitalProductSpecialButtons = ribbonBarDigitalScheduleSpecialButtons;
            Controller.Instance.DigitalProductPowerPoint     = buttonItemDigitalSchedulePowerPoint;
            Controller.Instance.DigitalProductTheme          = buttonItemDigitalScheduleTheme;
            Controller.Instance.DigitalProductAdd            = buttonItemDigitalScheduleProductAdd;
            Controller.Instance.DigitalProductClone          = buttonItemDigitalScheduleProductClone;
            Controller.Instance.DigitalProductDelete         = buttonItemDigitalScheduleProductDelete;
            #endregion

            #region Calendar 1
            Controller.Instance.Calendar1Panel               = ribbonPanelCalendar1;
            Controller.Instance.Calendar1SpecialButtons      = ribbonBarCalendar1SpecialButtons;
            Controller.Instance.Calendar1Copy                = buttonItemCalendar1Copy;
            Controller.Instance.Calendar1Paste               = buttonItemCalendar1Paste;
            Controller.Instance.Calendar1Clone               = buttonItemCalendar1Clone;
            Controller.Instance.Calendar1PowerPoint          = buttonItemCalendar1PowerPoint;
            Controller.Instance.Calendar1DataSourceSchedule  = buttonItemCalendar1DataSourceSchedule;
            Controller.Instance.Calendar1DataSourceSnapshots = buttonItemCalendar1DataSourceSnapshots;
            Controller.Instance.Calendar1DataSourceEmpty     = buttonItemCalendar1DataSourceEmpty;
            Controller.Instance.Calendar1Reset               = buttonItemCalendar1Reset;
            #endregion

            #region Calendar 2
            Controller.Instance.Calendar2Panel          = ribbonPanelCalendar2;
            Controller.Instance.Calendar2SpecialButtons = ribbonBarCalendar2SpecialButtons;
            Controller.Instance.Calendar2Copy           = buttonItemCalendar2Copy;
            Controller.Instance.Calendar2Paste          = buttonItemCalendar2Paste;
            Controller.Instance.Calendar2Clone          = buttonItemCalendar2Clone;
            Controller.Instance.Calendar2PowerPoint     = buttonItemCalendar2PowerPoint;
            Controller.Instance.Calendar2Reset          = buttonItemCalendar2Reset;
            #endregion

            #region Snapshot
            Controller.Instance.SnapshotPanel             = ribbonPanelSnapshot;
            Controller.Instance.SnapshotThemeBar          = ribbonBarSnapshotTheme;
            Controller.Instance.SnapshotSpecialButtons    = ribbonBarSnapshotSpecialButtons;
            Controller.Instance.SnapshotPowerPoint        = buttonItemSnapshotPowerPoint;
            Controller.Instance.SnapshotPowerPointCurrent = buttonItemSnapshotPowerPointCurrent;
            Controller.Instance.SnapshotPowerPointAll     = buttonItemSnapshotPowerPointAll;
            Controller.Instance.SnapshotTheme             = buttonItemSnapshotTheme;
            Controller.Instance.SnapshotNew           = buttonItemSnapshotNew;
            Controller.Instance.SnapshotProgramAdd    = buttonItemSnapshotProgramAdd;
            Controller.Instance.SnapshotProgramDelete = buttonItemSnapshotProgramDelete;
            Controller.Instance.SnapshotSettings      = buttonItemSnapshotSettings;
            #endregion

            #region Options
            Controller.Instance.OptionsPanel             = ribbonPanelOptions;
            Controller.Instance.OptionsThemeBar          = ribbonBarOptionsTheme;
            Controller.Instance.OptionsSpecialButtons    = ribbonBarOptionsSpecialButtons;
            Controller.Instance.OptionsPowerPoint        = buttonItemOptionsPowerPoint;
            Controller.Instance.OptionsPowerPointCurrent = buttonItemOptionsPowerPointCurrent;
            Controller.Instance.OptionsPowerPointAll     = buttonItemOptionsPowerPointAll;
            Controller.Instance.OptionsTheme             = buttonItemOptionsTheme;
            Controller.Instance.OptionsNew           = buttonItemOptionsNew;
            Controller.Instance.OptionsProgramAdd    = buttonItemOptionsProgramAdd;
            Controller.Instance.OptionsProgramDelete = buttonItemOptionsProgramDelete;
            Controller.Instance.OptionsSettings      = buttonItemOptionsSettings;
            #endregion

            #region Solutions
            Controller.Instance.SolutionsPanel             = ribbonPanelSolutions;
            Controller.Instance.SolutionsThemeBar          = ribbonBarSolutionsTheme;
            Controller.Instance.SolutionsSpecialButtons    = ribbonBarSolutionsSpecialButtons;
            Controller.Instance.SolutionsPowerPoint        = buttonItemSolutionsPowerPoint;
            Controller.Instance.SolutionsPowerPointCurrent = buttonItemSolutionsPowerPointCurrent;
            Controller.Instance.SolutionsPowerPointAll     = buttonItemSolutionsPowerPointAll;
            Controller.Instance.SolutionsTheme             = buttonItemSolutionsTheme;
            #endregion

            #region Slides
            Controller.Instance.SlidesPanel          = ribbonPanelSlides;
            Controller.Instance.SlidesLogoBar        = ribbonBarSlidesLogo;
            Controller.Instance.SlidesSpecialButtons = ribbonBarSlidesSpecialButtons;
            Controller.Instance.SlidesLogoLabel      = labelItemSlideHome;
            Controller.Instance.SlidesPowerPoint     = buttonItemSlidesPowerPoint;
            #endregion

            #region Gallery 1
            Controller.Instance.Gallery1Panel               = ribbonPanelGallery1;
            Controller.Instance.Gallery1SpecialButtons      = ribbonBarGallery1SpecialButtons;
            Controller.Instance.Gallery1BrowseBar           = ribbonBarGallery1Browse;
            Controller.Instance.Gallery1ImageBar            = ribbonBarGallery1Image;
            Controller.Instance.Gallery1ZoomBar             = ribbonBarGallery1Zoom;
            Controller.Instance.Gallery1CopyBar             = ribbonBarGallery1Copy;
            Controller.Instance.Gallery1BrowseModeContainer = itemContainerGallery1BrowseContentType;
            Controller.Instance.Gallery1View        = buttonItemGallery1View;
            Controller.Instance.Gallery1Edit        = buttonItemGallery1Edit;
            Controller.Instance.Gallery1ImageSelect = buttonItemGallery1ImageSelect;
            Controller.Instance.Gallery1ImageCrop   = buttonItemGallery1ImageCrop;
            Controller.Instance.Gallery1ZoomIn      = buttonItemGallery1ZoomIn;
            Controller.Instance.Gallery1ZoomOut     = buttonItemGallery1ZoomOut;
            Controller.Instance.Gallery1Copy        = buttonItemGallery1Copy;
            Controller.Instance.Gallery1Sections    = comboBoxEditGallery1Sections;
            Controller.Instance.Gallery1Groups      = comboBoxEditGallery1Groups;
            #endregion

            #region Gallery 2
            Controller.Instance.Gallery2Panel               = ribbonPanelGallery2;
            Controller.Instance.Gallery2SpecialButtons      = ribbonBarGallery2SpecialButtons;
            Controller.Instance.Gallery2BrowseBar           = ribbonBarGallery2Browse;
            Controller.Instance.Gallery2ImageBar            = ribbonBarGallery2Image;
            Controller.Instance.Gallery2ZoomBar             = ribbonBarGallery2Zoom;
            Controller.Instance.Gallery2CopyBar             = ribbonBarGallery2Copy;
            Controller.Instance.Gallery2BrowseModeContainer = itemContainerGallery2BrowseContentType;
            Controller.Instance.Gallery2View        = buttonItemGallery2View;
            Controller.Instance.Gallery2Edit        = buttonItemGallery2Edit;
            Controller.Instance.Gallery2ImageSelect = buttonItemGallery2ImageSelect;
            Controller.Instance.Gallery2ImageCrop   = buttonItemGallery2ImageCrop;
            Controller.Instance.Gallery2ZoomIn      = buttonItemGallery2ZoomIn;
            Controller.Instance.Gallery2ZoomOut     = buttonItemGallery2ZoomOut;
            Controller.Instance.Gallery2Copy        = buttonItemGallery2Copy;
            Controller.Instance.Gallery2Sections    = comboBoxEditGallery2Sections;
            Controller.Instance.Gallery2Groups      = comboBoxEditGallery2Groups;
            #endregion

            #region Rate Card
            Controller.Instance.RateCardPanel          = ribbonPanelRateCard;
            Controller.Instance.RateCardSpecialButtons = ribbonBarRateCardSpecialButtons;
            Controller.Instance.RateCardCombo          = comboBoxEditRateCards;
            #endregion

            #endregion

            ribbonControl.SelectedRibbonTabChanged += OnRibbonTabChanged;

            BusinessObjects.Instance.ScheduleManager.ScheduleOpened      += (o, e) => UpdateFormTitle();
            BusinessObjects.Instance.ScheduleManager.ScheduleNameChanged += (o, e) => UpdateFormTitle();
            Controller.Instance.FloaterRequested += (o, e) => AppManager.Instance.ShowFloater(this, e);
        }