Пример #1
0
        public WorkPeriodsModule(IRegionManager regionManager, WorkPeriodsView workPeriodsView,IUserService userService)
            : base(regionManager, AppScreens.WorkPeriods)
        {
            _regionManager = regionManager;
            _workPeriodsView = workPeriodsView;
            _userService = userService;

            SetNavigationCommand(Resources.DayOperations, Resources.Common, "Images/Run.png");
            PermissionRegistry.RegisterPermission(PermissionNames.OpenWorkPeriods, PermissionCategories.Navigation,
                                                  Resources.CanStartEndOfDay);
        }
Пример #2
0
        public WorkPeriodsModule(IRegionManager regionManager, WorkPeriodsView workPeriodsView, IUserService userService)
            : base(regionManager, AppScreens.WorkPeriods)
        {
            _regionManager   = regionManager;
            _workPeriodsView = workPeriodsView;
            _userService     = userService;

            SetNavigationCommand(Resources.DayOperations, Resources.Common, "Images/Run.png");
            PermissionRegistry.RegisterPermission(PermissionNames.OpenWorkPeriods, PermissionCategories.Navigation,
                                                  Resources.CanStartEndOfDay);
        }