Ejemplo n.º 1
0
        private Dictionary <string, Action> CreateDictionaryEmployees()
        {
            dictionaryEmployees = new Dictionary <string, Action>();
            foreach (var item in calculater.GetEmployees())
            {
                dictionaryEmployees.Add($"{item.Position}: {item.Salary}", ToBackEmployee);
            }
            dictionaryEmployees.Add("Назад.", ToBackEmployee);

            return(dictionaryEmployees);
        }
Ejemplo n.º 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();
        }