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(); }
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)}"); } }
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()}"); }