本文整理汇总了C#中FlexWiki.LinkMaker.LinkToQuicklink方法的典型用法代码示例。如果您正苦于以下问题:C# LinkMaker.LinkToQuicklink方法的具体用法?C# LinkMaker.LinkToQuicklink怎么用?C# LinkMaker.LinkToQuicklink使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FlexWiki.LinkMaker
的用法示例。
在下文中一共展示了LinkMaker.LinkToQuicklink方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DoPageImplementation
protected string DoPageImplementation(LinkMaker lm)
{
StringBuilder strbldr = new StringBuilder();
strbldr.AppendLine("<div id=\"TopicBody\">");
strbldr.AppendLine("<span id=\"TopicTip\" class=\"TopicTip\" ></span>");
// Insert the TopicBody to hold the topic content
//strbldr.AppendLine("<div id=\"TopicBody\">");
strbldr.AppendLine("<form method=\"post\" action=\"" + lm.LinkToQuicklink() + "?QuickLinkNamespace=" + topic.Namespace + "\" name=\"QuickLinkForm\">");
strbldr.AppendLine("<div id=\"TopicBar\" title=\"Click here to quickly jump to or create a topic\" class=\"TopicBar\" onmouseover=\"TopicBarMouseOver()\" onclick=\"TopicBarClick(event)\" onmouseout=\"TopicBarMouseOut()\">");
strbldr.AppendLine("<div id=\"StaticTopicBar\" class=\"StaticTopicBar\" style=\"display: block\">" + GetTitle() + "</div>");
strbldr.AppendLine("<div id=\"DynamicTopicBar\" class=\"DynamicTopicBar\" style=\"display: none\">");
//strbldr.AppendLine("<!-- <input id=\"TopicBarNamespace\" style=\"display: none\" type=\"text\" name=\"QuickLinkNamespace\" /> -->");
strbldr.AppendLine("<input id=\"TopicBarInputBox\" title=\"Enter a topic here to go to or create\" class=\"QuickLinkInput\" type=\"text\" name=\"QuickLink\" />");
strbldr.AppendLine("<div class=\"DynamicTopicBarHelp\">Enter a topic name to show or a new topic name to create; then press Enter</div>");
strbldr.AppendLine("</div></div></form>");
if (isBlacklistedRestore)
{
strbldr.AppendLine("<div class=\"BlacklistedRestore\"><font color=\"red\"><b>The version of the topic you are trying to restore contains content that has been banned by policy of this site. Restore can not be completed.</b></font></div>");
}
strbldr.AppendLine(formattedBody);
// Close the TopicBody.
strbldr.AppendLine("</div>");
string page = strbldr.ToString();
return page;
}