string Tweet(DateTime start, DateTime exit) { var today = ProcessLog.Count(exit); var all = ProcessLog.Count(); var time = (exit - start).PrettyPrint(); return(String.Format(tweetFormat, today, all, time)); }
void LogAbort(ProcessResult result) { var paragraph = new Paragraph(new Run(String.Format("{0}: ", count++))); var text = new Run("UE4が落ちました ") { Foreground = Brushes.Red }; paragraph.Inlines.Add(new Bold(text)); var time = String.Format("起動時間: {0} ", result.Time.PrettyPrint()); paragraph.Inlines.Add(new Run(time)); var number = String.Format("(本日{0}回目, 通算{1}回目)", ProcessLog.Count(result.Date), ProcessLog.Count()); paragraph.Inlines.Add(new Run(number)); Blocks.Add(paragraph); }