protected override void Compile() { base.Compile(); if (Selected == null) { return; } Html = String.Format("<basefont color=#{0:X6}>", HtmlColor.ToRgb()); if (HistoryDate != null && HistoryDate.Value <= DateTime.UtcNow) { Html += String.Format( "Viewing History for {0} on {1}\n\n", Selected.Owner.RawName, HistoryDate.Value.ToSimpleString(TrashCollection.CMOptions.DateFormat)); Html += "<big>Showing up to 500 entries...</big>\n\n"; Html += String.Join("\n", Selected.GetHistory(HistoryDate.Value, 500).Select(e => e.ToHtmlString(TechnicalView))); } else { Html += String.Format("Viewing Recent History for {0}\n\n", Selected.Owner.RawName); Html += "<big>Showing up to 500 entries...</big>\n\n"; Html += String.Join("\n", Selected.GetHistory(500).Select(e => e.ToHtmlString(TechnicalView))); } }
protected override void Compile() { base.Compile(); if (Selected == null || Selected.Deleted) { Selected = TrashCollection.EnsureProfile(User, true); } Html = String.Format("<basefont color=#{0:X6}>", HtmlColor.ToRgb()); Html += Selected.ToHtmlString(User); }
protected override void Compile() { base.Compile(); if (Selected == null || Selected.Deleted) { Selected = Voting.EnsureProfile(User as PlayerMobile, true); } Html = String.Format("<basefont color=#{0:X6}>", HtmlColor.ToRgb()); if (Selected != null) { Html += Selected.ToHtmlString(User); } }