Example #1
0
        private Dictionary <string, Action> CreateDictionaryRentalSpace()
        {
            dictionaryRentalSpace = new Dictionary <string, Action>();
            foreach (var item in calculater.GetRentalSpaces())
            {
                dictionaryRentalSpace.Add($"{item.Title}: {item.Rental}", ToBackRentalSpace);
            }
            dictionaryRentalSpace.Add("Назад.", ToBackRentalSpace);

            return(dictionaryRentalSpace);
        }
Example #2
0
        public void ToFillUser(int month, decimal budget)
        {
            account.User.Employees     = userService.GetEmployees();
            account.User.Goods         = userService.GetGoods();
            account.User.RentalSpaces  = userService.GetRentalSpaces();
            account.User.TotalRevenue  = userService.AnalyticsOfShop.Revenue * month;
            account.User.TotalExpenses = userService.AnalyticsOfShop.TotalExpenses * month;
            account.User.Delta         = userService.Delta.DeltaFromShop;
            account.User.Budget        = budget;
            account.User.Month         = month;

            account.CreateRecord();
        }