public SuperTipFromCodeForStandardControls()
        {
            InitializeComponent();

            SuperTip        tip        = new SuperTip();
            SuperTipControl tipControl = new SuperTipControl();

            tipControl.SuperTip = tip;
            SuperTipHeaderItem header = new SuperTipHeaderItem();

            header.Content = "New";
            SuperTipItem item = new SuperTipItem();

            item.Content = "Create a new document";

            SuperTipItem item2 = new SuperTipItem();

            item2.Content = "Opens a new document in a new tab";

            tip.Items.Add(header);
            tip.Items.Add(item);
            tip.Items.Add(new SuperTipItemSeparator());
            tip.Items.Add(item2);

            bt.ToolTip = tipControl;
        }
Пример #2
0
        private void InitializeSuperTipFromCode()
        {
            SuperTip        tip        = new SuperTip();
            SuperTipControl tipControl = new SuperTipControl();

            tipControl.SuperTip = tip;
            SuperTipHeaderItem header = new SuperTipHeaderItem();

            header.Content = "New";
            SuperTipItem item = new SuperTipItem();

            item.Content = "Create a new document";

            SuperTipItem item2 = new SuperTipItem();

            item2.Content = "Opens a new document in a new tab";

            tip.Items.Add(header);
            tip.Items.Add(item);
            tip.Items.Add(new SuperTipItemSeparator());
            tip.Items.Add(item2);

            FrameworkElementHelper.SetToolTip(stdBtn, tipControl);
            barBtn.SuperTip   = tip;
            bNewCode.SuperTip = tip;
        }
Пример #3
0
        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);
            }
        }
Пример #4
0
        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;
                }
            }
        }
Пример #5
0
        public Page_Store()
        {
            InitializeComponent();
            self = this;


            // Init Catalog Cbo with catalog paths from the registry
            List <CatalogItem> _catalogList = CatalogList.GetCatalogs();   //Get list from the HV2 registry

            catalogPathCbo.Items.Clear();
            foreach (CatalogItem catalog in _catalogList)
            {
                catalogPathCbo.Items.Add(catalog.LocationPath);
            }
            if (catalogPathCbo.Items.Count > 0)  //Select something
            {
                catalogPathCbo.SelectedIndex = 0;
            }

            //Monitoring Catalog Locks
            monitorTimer.Interval = 1000;  //Poll for locks ever 1 sec
            monitorTimer.Tick    += new EventHandler(monitorTimer_Tick);

            //Init SuperTip and tips
            defaultMonitorTip = "Here we display the catalog write lock status on a timer.\nTry performing a catalog update (Help Manager) and watch the status change.\nUseful to apps like this which access catalog files directly.";
            monitorLocksTip   = new SuperTip(CatalogLocksTip, "Monitor Catalog Locks", defaultMonitorTip);
            new SuperTip(LoadButtonTip, "Load",
                         "Given a valid 'managed' catalog location, the Load button code rips",
                         "the various catalog XML files for all catalog configuration data.",
                         "* CatalogType.xml - Required to enable User Managed content.",
                         @"* ContentStore\installedBooks.xml - Lists all catalog books and packages.",
                         @"* ContentStore\<locale>\<packageName>.metadata - Package download related info.");
            new SuperTip(warningTip, "Bypassing the API Warning",
                         "Here we are sneaking around the Help Runtime API and accessing",
                         "help catalog files directly. While this is all very interesting",
                         "as we learn how Help Viewer 2.0 works, the Help API normally",
                         "serves most of our needs, and we don't want to block or upset",
                         "the normal operation of the help system.");
            CopyBtn.ToolTipText     = "Copy node & sub-node text\n(Ctrl+C)";
            ExplorerBtn.ToolTipText = "Show the associated XML file in Explorer\n(Ctrl+E)";

            EnableDisable();
        }
Пример #6
0
        public SuperTipForRibbonFromCode()
        {
            InitializeComponent();

            SuperTip           tip    = new SuperTip();
            SuperTipHeaderItem header = new SuperTipHeaderItem();

            header.Content = "New";
            SuperTipItem item = new SuperTipItem();

            item.Content = "Create a new document";

            SuperTipItem item2 = new SuperTipItem();

            item2.Content = "Opens a new document in a new tab";

            tip.Items.Add(header);
            tip.Items.Add(item);
            tip.Items.Add(new SuperTipItemSeparator());
            tip.Items.Add(item2);

            bNew.SuperTip = tip;
        }
Пример #7
0
        public Page_Store()
        {
            InitializeComponent();
            self = this;

            // Init Catalog Cbo with catalog paths from the registry
            List<CatalogItem> _catalogList = CatalogList.GetCatalogs();   //Get list from the HV2 registry
            catalogPathCbo.Items.Clear();
            foreach (CatalogItem catalog in _catalogList)
                catalogPathCbo.Items.Add(catalog.LocationPath);
            if (catalogPathCbo.Items.Count > 0)  //Select something
                catalogPathCbo.SelectedIndex = 0;

            //Monitoring Catalog Locks
            monitorTimer.Interval = 1000;  //Poll for locks ever 1 sec
            monitorTimer.Tick += new EventHandler(monitorTimer_Tick);

            //Init SuperTip and tips
            defaultMonitorTip = "Here we display the catalog write lock status on a timer.\nTry performing a catalog update (Help Manager) and watch the status change.\nUseful to apps like this which access catalog files directly.";
            monitorLocksTip = new SuperTip(CatalogLocksTip, "Monitor Catalog Locks", defaultMonitorTip);
            new SuperTip(LoadButtonTip, "Load",
                "Given a valid 'managed' catalog location, the Load button code rips",
                "the various catalog XML files for all catalog configuration data.",
                "* CatalogType.xml - Required to enable User Managed content.",
                @"* ContentStore\installedBooks.xml - Lists all catalog books and packages.",
                @"* ContentStore\<locale>\<packageName>.metadata - Package download related info.");
            new SuperTip(warningTip, "Bypassing the API Warning",
                "Here we are sneaking around the Help Runtime API and accessing",
                "help catalog files directly. While this is all very interesting",
                "as we learn how Help Viewer 2.0 works, the Help API normally",
                "serves most of our needs, and we don't want to block or upset",
                "the normal operation of the help system.");
            CopyBtn.ToolTipText = "Copy node & sub-node text\n(Ctrl+C)";
            ExplorerBtn.ToolTipText = "Show the associated XML file in Explorer\n(Ctrl+E)";

            EnableDisable();
        }