internal string SerializeUnencrypted() { return("Domain: " + Domain.Replace('\n', ' ') + "\n" + "OwnerName: " + OwnerName.Replace('\n', ' ') + "\n" + "Issued: " + Issued.ToString() + "\n" + "Expires: " + Expires.ToString() + "\n" + "Features: " + Join(Features) + "\n"); }
public string SerializeUnencrypted() { string expires = Expires.HasValue ? Expires.Value.ToUniversalTime().ToString() : string.Empty; return("Domain: " + Domain.Replace('\n', ' ') + "\n" + "OwnerName: " + OwnerName.Replace('\n', ' ') + "\n" + "Issued: " + Issued.ToString() + "\n" + "Expires: " + expires + "\n" + "Features: " + Join(Features) + "\n"); }
public string GetShortDescription() { var sb = new StringBuilder(OwnerName + " - " + Domain + " - " + Issued.ToString() + " - " + Expires.ToString() + " - "); foreach (var id in Features) { sb.Append(id + " "); } return(sb.ToString().TrimEnd()); }
/// <summary> /// Returns a human readable, single-line description of the license /// </summary> /// <returns></returns> internal string GetShortDescription() { StringBuilder sb = new StringBuilder(OwnerName + " - " + Domain + " - " + Issued.ToString() + " - " + Expires.ToString() + " - "); foreach (var id in Features) { sb.Append(GetFriendlyName(id) + " "); } return(sb.ToString().TrimEnd()); }
public string GetTitle() { switch (Status) { case OutstandingStatus: return(string.Format(Properties.Resources.MessageFormatLine1, Status, Issued.ToString("dd/MM/yyyy HH:mm:ss"))); break; case AcceptedStatus: return(string.Format(Properties.Resources.MessageFormatLine1, Status, Accepted.Value.ToString("dd/MM/yyyy HH:mm:ss"))); break; case CompletedStatus: return(string.Format(Properties.Resources.MessageFormatLine1, Status, Completed.Value.ToString("dd/MM/yyyy HH:mm:ss"))); break; default: return(string.Format(Properties.Resources.MessageFormatLine1a, Status)); } ; }
public override string ToString() { return(this.MeasurementResult.ToString() + "(" + Issued.ToString() + ")"); }