private static void OnWeeklyPaymentEvent(Object source, ElapsedEventArgs e)
 {
     _utilitiesAmount     = (ShopManager.Balance - _lastWeekBalance) * 0.15;
     ShopManager.Balance -= _utilitiesAmount;
     BalanceReadWrite.Write(ShopManager.Balance);
     Console.WriteLine("Utilities have been paid in full!");
     _lastWeekBalance = ShopManager.Balance;
 }
 private static void OnMonthlyPaymentEvent(Object source, ElapsedEventArgs e)
 {
     _bribeAmount         = (ShopManager.Balance - _lastMonthBalance) * 0.05;
     ShopManager.Balance -= _bribeAmount;
     BalanceReadWrite.Write(ShopManager.Balance);
     Console.WriteLine("Bribes have been paid in full!");
     _lastMonthBalance = ShopManager.Balance;
     PaySalary();
 }
 private static void PaySalary()
 {
     foreach (var repairMan in ShopManager.Lucy.Salary.Keys)
     {
         repairMan.GetSalary(ShopManager.Lucy.Salary[repairMan] + 100);
         ShopManager.Balance -= ShopManager.Lucy.Salary[repairMan] - 100;
         ShopManager.Lucy.Salary[repairMan] = 0;
         BalanceReadWrite.Write(ShopManager.Balance);
     }
     ShopManager.Lucy.Salary.Keys.ToList().ForEach(x => ShopManager.Lucy.Salary[x] = 0);
     ShopManager.Lucy.GetSalary();
 }
 public MonthlyPaymentService()
 {
     _lastMonthBalance = BalanceReadWrite.Read();
     SetPaymentTimer();
 }
 public WeeklyPaymentService()
 {
     _lastWeekBalance = BalanceReadWrite.Read();
     SetUtilitiesPaymentTimer();
 }