private void ConfigureThemeButtons() { if (!BusinessObjects.Instance.ThemeManager.GetThemes(SlideType.None).Any()) { var selectorToolTip = new SuperTooltipInfo("Important Info", "", "Click to get more info why output is disabled", null, null, eTooltipColor.Gray); MenuEmailButton.Visible = false; MenuOutputPdfButton.Visible = false; ((RibbonBar)ProgramSchedulePowerPoint.ContainerControl).Visible = false; SuperTip.SetSuperTooltip(ProgramScheduleTheme, selectorToolTip); ProgramScheduleTheme.Click -= OnThemeClick; ProgramScheduleTheme.Click += OnThemeClick; ((RibbonBar)DigitalProductPowerPoint.ContainerControl).Visible = false; SuperTip.SetSuperTooltip(DigitalProductTheme, selectorToolTip); DigitalProductTheme.Click -= OnThemeClick; DigitalProductTheme.Click += OnThemeClick; ((RibbonBar)SnapshotPowerPoint.ContainerControl).Visible = false; SuperTip.SetSuperTooltip(SnapshotTheme, selectorToolTip); SnapshotTheme.Click -= OnThemeClick; SnapshotTheme.Click += OnThemeClick; ((RibbonBar)OptionsPowerPoint.ContainerControl).Visible = false; SuperTip.SetSuperTooltip(OptionsTheme, selectorToolTip); OptionsTheme.Click -= OnThemeClick; OptionsTheme.Click += OnThemeClick; ((RibbonBar)SolutionsPowerPoint.ContainerControl).Visible = false; SuperTip.SetSuperTooltip(SolutionsTheme, selectorToolTip); SolutionsTheme.Click -= OnThemeClick; SolutionsTheme.Click += OnThemeClick; } else { MenuEmailButton.Visible = true; MenuOutputPdfButton.Visible = true; ((RibbonBar)ProgramSchedulePowerPoint.ContainerControl).Visible = true; ProgramScheduleTheme.Click -= OnThemeClick; ((RibbonBar)DigitalProductPowerPoint.ContainerControl).Visible = true; DigitalProductTheme.Click -= OnThemeClick; ((RibbonBar)SnapshotPowerPoint.ContainerControl).Visible = true; SnapshotTheme.Click -= OnThemeClick; ((RibbonBar)OptionsPowerPoint.ContainerControl).Visible = true; OptionsTheme.Click -= OnThemeClick; ((RibbonBar)SolutionsPowerPoint.ContainerControl).Visible = true; SolutionsTheme.Click -= OnThemeClick; var selectorToolTip = new SuperTooltipInfo("Slide Theme", "", "Select the PowerPoint Slide theme you want to use for this schedule", null, null, eTooltipColor.Gray); SuperTip.SetSuperTooltip(ProgramScheduleTheme, selectorToolTip); SuperTip.SetSuperTooltip(DigitalProductTheme, selectorToolTip); SuperTip.SetSuperTooltip(SnapshotTheme, selectorToolTip); SuperTip.SetSuperTooltip(OptionsTheme, selectorToolTip); SuperTip.SetSuperTooltip(SolutionsTheme, selectorToolTip); } }
private void ConfigureSpecialButtons() { var specialLinkContainers = new[] { HomeSpecialButtons, ProgramScheduleSpecialButtons, DigitalProductSpecialButtons, SnapshotSpecialButtons, OptionsSpecialButtons, Calendar1SpecialButtons, Calendar2SpecialButtons, SolutionsSpecialButtons, SlidesSpecialButtons, RateCardSpecialButtons, Gallery1SpecialButtons, Gallery2SpecialButtons, }; foreach (var ribbonBar in specialLinkContainers) { if (Business.Online.Dictionaries.ListManager.Instance.SpecialLinksEnable) { ribbonBar.Text = Business.Online.Dictionaries.ListManager.Instance.SpecialLinksGroupName; var containerButton = new ButtonItem { Image = Business.Online.Dictionaries.ListManager.Instance.SpecialLinksGroupLogo, AutoExpandOnClick = true }; SuperTip.SetSuperTooltip(containerButton, new SuperTooltipInfo("Links", "", "Helpful schedule building Links and resources", null, null, eTooltipColor.Gray)); ribbonBar.Items.Add(containerButton); foreach (var specialLinkButton in Business.Online.Dictionaries.ListManager.Instance.SpecialLinkButtons) { var clickAction = new Action(() => { specialLinkButton.Open(); }); var button = new ButtonItem { Image = specialLinkButton.Logo, Text = String.Format("<b>{0}</b><p>{1}</p>", specialLinkButton.Name, specialLinkButton.Tooltip), Tag = specialLinkButton }; button.Click += (o, e) => clickAction(); containerButton.SubItems.Add(button); } } else { ribbonBar.Visible = false; } } }