本文整理汇总了C#中ICommandContext.OpenUrlInBrowser方法的典型用法代码示例。如果您正苦于以下问题:C# ICommandContext.OpenUrlInBrowser方法的具体用法?C# ICommandContext.OpenUrlInBrowser怎么用?C# ICommandContext.OpenUrlInBrowser使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ICommandContext
的用法示例。
在下文中一共展示了ICommandContext.OpenUrlInBrowser方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ExecuteShowForumArticles
public void ExecuteShowForumArticles(ICommandContext context, int? forumId)
{
context.OpenUrlInBrowser(
JanusProtocolDispatcher.FormatURI(
JanusProtocolResourceType.ArticleList,
GetForumId(context, forumId).ToString()));
}
示例2: ExecuteEditMessage
public void ExecuteEditMessage(ICommandContext context, int? messageId)
{
context.OpenUrlInBrowser(
_editUrlTemplate.FormatWith(
_siteUrl(),
ForumCommandHelper.GetMessageId(context, messageId)));
}
示例3: ExecuteOpenMessageInJBrowser
public void ExecuteOpenMessageInJBrowser(ICommandContext context, int? messageId)
{
var url = JanusProtocolDispatcher.FormatURI(
JanusProtocolResourceType.Message,
ForumCommandHelper.GetMessageId(context, messageId).ToString());
context.OpenUrlInBrowser(url, UrlBehavior.InternalBrowser);
}
示例4: ExecuteOpenForumOnRsdn
public void ExecuteOpenForumOnRsdn(
ICommandContext context, int? forumId)
{
context.OpenUrlInBrowser(
SiteUrlHelper.GetForumUrl(GetForum(context, forumId).Name));
}
示例5: ExecuteOpenMessageRatingOnRsdn
public void ExecuteOpenMessageRatingOnRsdn(ICommandContext context, int? messageId)
{
context.OpenUrlInBrowser(
SiteUrlHelper.GetRatingUrl(
ForumCommandHelper.GetMessageId(context, messageId)));
}
示例6: ExecuteOpenViolationReps
public void ExecuteOpenViolationReps(ICommandContext context)
{
context.OpenUrlInBrowser(_openViolationRepsUrl);
}
示例7: ExecuteOpenReasonsEditor
public void ExecuteOpenReasonsEditor(ICommandContext context)
{
context.OpenUrlInBrowser(_openReasonsEditorUrl);
}
示例8: ExecuteModMessage
public void ExecuteModMessage(ICommandContext context, int? messageId)
{
context.OpenUrlInBrowser(
_modUrlTemplate.FormatStr(
ForumCommandHelper.GetMessageId(context, messageId)));
}
示例9: ExecuteOpenViolationReps
public void ExecuteOpenViolationReps(ICommandContext context)
{
context.OpenUrlInBrowser(_openViolationRepsUrl.FormatWith(_siteUrl()));
}
示例10: ExecuteOpenReasonsEditor
public void ExecuteOpenReasonsEditor(ICommandContext context)
{
context.OpenUrlInBrowser(_openReasonsEditorUrl.FormatWith(_siteUrl()));
}
示例11: ExecuteOpenLink
public void ExecuteOpenLink(ICommandContext context)
{
var link = (FavoritesLink)context
.GetRequiredService<IFavoritesDummyFormService>()
.SelectedEntries.Single();
if (string.IsNullOrEmpty(link.Url))
ApplicationManager.Instance.ForumNavigator.SelectMessage(link.MessageId);
else
context.OpenUrlInBrowser(link.Link);
}
示例12: ExecuteWarnModeratorOnRsdn
public void ExecuteWarnModeratorOnRsdn(ICommandContext context, int? messageId)
{
context.OpenUrlInBrowser(
RsdnUrlHelper.GetWarnModeratorUrl(
ForumCommandHelper.GetMessageId(context, messageId)));
}
示例13: ExecuteShowAllFaq
public void ExecuteShowAllFaq(ICommandContext context)
{
context.OpenUrlInBrowser(
JanusProtocolDispatcher.FormatURI(
JanusProtocolResourceType.FaqList, "0"));
}
示例14: ExecuteOpenFileUploadOnRsdn
public void ExecuteOpenFileUploadOnRsdn(ICommandContext context)
{
context.OpenUrlInBrowser(SiteUrlHelper.GetFileUploadUrl());
}
示例15: ExecuteShowUserRatingOut
public void ExecuteShowUserRatingOut(ICommandContext context)
{
var uid = Config.Instance.SelfId;
context.OpenUrlInBrowser(
JanusProtocolDispatcher.FormatURI(
JanusProtocolResourceType.UserOutrating, uid.ToString()));
}