Пример #1
0
 public void StoreTime()
 {
     using (StreamWriter w = File.AppendText("LucyLog.txt"))
     {
         w.WriteLine($"Application closed");
         w.WriteLine($"\r{MsgDecoratorTool.PassMeTime().ToString("MM/dd/yyyy h:mm tt", CultureInfo.CurrentUICulture)}");
     }
 }
Пример #2
0
 public static void Log(string logMessage, TextWriter w)
 {
     w.Write($"\r{MsgDecoratorTool.PassMeTime().ToString("MM/dd/yyyy h:mm tt", CultureInfo.CurrentUICulture)} : ");
     w.WriteLine($"{logMessage}");
 }
Пример #3
0
 public static DateTime WhatTimeIsItNow()
 {
     return(MsgDecoratorTool.PassMeTime());
 }
Пример #4
0
 public static void ShopIsClosed()
 {
     Lucy.Say($"The Auto Repair Shop will open at 8 am tomorrow! We are not working at night time: {MsgDecoratorTool.PassMeTime()}");
 }