Exemplo n.º 1
0
 public string GetRecordingDisplayText(RecordingSummary recording, bool addChannelName)
 {
     StringBuilder programTitle = new StringBuilder(recording.CreateProgramTitle());
     programTitle.Append(" - ");
     if (addChannelName)
     {
         programTitle.Append(recording.ChannelDisplayName).Append(" - ");
     }
     programTitle.AppendFormat("{0:g}", recording.ProgramStartTime);
     return programTitle.ToString();
 }
Exemplo n.º 2
0
 private static string GetRecordingDisplayText(RecordingSummary recording, bool addChannelName)
 {
     StringBuilder programTitle = new StringBuilder(recording.CreateProgramTitle());
     programTitle.Append(" - ");
     if (addChannelName)
     {
         programTitle.Append(recording.ChannelDisplayName).Append(" - ");
     }
     programTitle.Append(FormatDateWithTime(recording.ProgramStartTime, true));
     return programTitle.ToString();
 }