Beispiel #1
0
        public FrequentTip ComposePDFCreatorOnlineTip()
        {
            var frequentBannerElement = new FrequentTip();

            frequentBannerElement.Title   = Translation.PDFCreatorOnlineTitle;
            frequentBannerElement.Text    = Translation.PDFCreatorOnlineText;
            frequentBannerElement.Command = _commandLocator.GetInitializedCommand <UrlOpenCommand, string>(Urls.PdfCreatorOnlineUrl);
            return(frequentBannerElement);
        }
Beispiel #2
0
        public FrequentTip ComposeUserTokensTip()
        {
            var frequentBannerElement = new FrequentTip();

            frequentBannerElement.Title   = Translation.UserTokensTitle;
            frequentBannerElement.Text    = Translation.UserTokensText;
            frequentBannerElement.Command = _commandLocator.GetInitializedCommand <UrlOpenCommand, string>(Urls.Tip_UserTokensUrl);
            return(frequentBannerElement);
        }
Beispiel #3
0
        public FrequentTip ComposeF1HelpTip()
        {
            var frequentBannerElement = new FrequentTip();

            frequentBannerElement.Title   = Translation.F1HelpTitle;
            frequentBannerElement.Text    = Translation.F1HelpText;
            frequentBannerElement.Command = _commandLocator.GetInitializedCommand <ShowUserGuideCommand, HelpTopic>(HelpTopic.General);
            return(frequentBannerElement);
        }
Beispiel #4
0
        private FrequentTip ComposeTip <TCommand, TParameter>(string title, string body, TParameter parameter) where TCommand : class, IInitializedCommand <TParameter>
        {
            var composedTip = new FrequentTip();

            composedTip.Title   = title;
            composedTip.Text    = body;
            composedTip.Command = _commandLocator.GetInitializedCommand <TCommand, TParameter>(parameter);
            return(composedTip);
        }
Beispiel #5
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            FrequentTip ft = obj as FrequentTip;

            if (ft == null)
            {
                return(false);
            }

            return((Title == ft.Title) &&
                   (Text == ft.Text) &&
                   (Command == ft.Command)
                   );
        }