public static void AcceptNewCustomer(Customer customer) { if (!WorkingHours()) { return; } CurrentCustomer = customer; CustomerQueue <Customer> .Dequeue(Customers); CurrentCustomer.StopWaitForServicesTimer(); Dss.AddCustomer(CurrentCustomer); //daily logging service Lucy.Say($"Greetings {CurrentCustomer.Name}! My name is {Lucy.Name} and I will be your Repair Shop Manager today."); Lucy.Say($"Please leave your {CurrentCustomer.MyCar.Name} at the parking lot."); if (Lucy._isGarageEmpty) { Lucy._isGarageEmpty = false; } Lucy._lrw.StoreLog($"New customer: {CurrentCustomer.Name}, Car: {CurrentCustomer.MyCar.Name}, Customer registered"); Lucy.Say($"{CurrentCustomer.Name}, what shall we do with your {CurrentCustomer.MyCar.Name}?"); if (WorkingHours()) { CurrentCustomer.MakeDiagnosticsOrder(); } Lucy._css.AppendContractText(); RepairAutomationTool.MakeRepairChoice(); }
public static void ResumeWorkingWithCustomer(Customer customer) { if (!WorkingHours()) { return; } CurrentCustomer = customer; CustomerQueue <Customer> .Dequeue(CustomersOnHold); CurrentCustomer.StopWaitForServicesTimer(); Lucy.Say($"Thank you for waiting. We are ready to complete your work orders, {CurrentCustomer.Name}!"); if (Lucy._isGarageEmpty) { Lucy._isGarageEmpty = false; } RepairAutomationTool.MakeRepairChoice(); }