Exemple #1
0
 static void Main()
 {
     MsgDecoratorTool.PrintCustomMessage("Welcome to the Repair Shop!", ConsoleColor.Green, ConsoleColor.Black);
     SetConsoleCtrlHandler(ConsoleCtrlCheck, true);
     WeeklyPaymentService  wps = new WeeklyPaymentService();
     MonthlyPaymentService mps = new MonthlyPaymentService();
     RepairAutomationTool  repairAutomationTool = new RepairAutomationTool();
 }
Exemple #2
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)}");
     }
 }
Exemple #3
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}");
 }
 public static DateTime WhatTimeIsItNow()
 {
     return(MsgDecoratorTool.PassMeTime());
 }
 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()}");
 }