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); }
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); }
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); }
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); }
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) ); }