Esempio n. 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)}");
     }
 }
Esempio n. 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}");
 }
Esempio n. 3
0
 public static DateTime WhatTimeIsItNow()
 {
     return(MsgDecoratorTool.PassMeTime());
 }
Esempio n. 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()}");
 }