コード例 #1
0
ファイル: BuddyCommunityTab.cs プロジェクト: ikvm/webmatrix
 private void GenerateSignInDisplayPage(CommunityTab.CommunityPageBuilder builder)
 {
     builder.BeginNewSection(false);
     builder.AddImage(InfoGlyph).Padding = new BoxEdges(0, 1, 4, 1);
     builder.PushBold();
     builder.AddText("Please sign-in...");
     builder.PopBold();
     builder.EndCurrentSection();
     builder.AddSectionBreak();
     builder.BeginNewSection(20);
     builder.AddTextSpan("You can use the contact list feature to interact with your contacts in the '" + this._buddyGroup + "' group by signing into Windows Messenger service.");
     builder.EndCurrentSection();
     builder.AddSectionBreak();
     builder.BeginNewSection(20);
     builder.AddHyperLink("Sign-in", "SignIn").ToolTip = "Click here to sign-in now";
     builder.EndCurrentSection();
 }
コード例 #2
0
ファイル: BuddyCommunityTab.cs プロジェクト: ikvm/webmatrix
 private void GenerateErrorDisplayPage(CommunityTab.CommunityPageBuilder builder)
 {
     builder.BeginNewSection(false);
     builder.AddImage(ErrorGlyph).Padding = new BoxEdges(0, 1, 4, 1);
     builder.PushBold();
     builder.AddText("Error...");
     builder.PopBold();
     builder.EndCurrentSection();
     builder.AddSectionBreak();
     builder.BeginNewSection(20);
     builder.AddTextSpan("Unable to access the Windows Messenger service and display contacts in the '" + this._buddyGroup + "' contact group. To use the contact list feature you must have Windows Messenger version 4.5 or greater on your computer.");
     builder.EndCurrentSection();
     builder.AddSectionBreak();
     builder.BeginNewSection(20);
     builder.AddHyperLink("Click here", "Messenger").ToolTip = "http://messenger.msn.com";
     builder.AddTextSpan(" to download and install the latest version of Windows Messenger. Once you have installed it, click the 'Refresh' button above.");
     builder.EndCurrentSection();
 }