public static string Console(FlightInfo item, DiffEntry entry) { string format; switch (entry.Name) { case "ACT ARR": format = FlightInfoActArrDiffFormat; break; case "ACT DEP": format = FlightInfoActDepDiffFormat; break; default: format = FlightInfoFormat; break; } return(string.Concat(FormattableObject.ToString(item, format, null), string.Format("\t{0}\t\t{1}\t{2}", entry.Name, entry.BaselineValue, item.Source))); }
public static string ItemFormater(Item item, DiffEntry entry) { return(string.Concat(FormattableObject.ToString(item, "${Id}\t${Name}\t${Age}", null), string.Format("\t{0}\t{1}", entry.Name, entry.BaselineValue))); }
internal void AddEntry(DiffEntry entry) { Entries.Add(entry); }