Exemplo n.º 1
0
        public ResourceModule(IRegionManager regionManager,
            IUserService userService,
            ResourceSwitcherView resourceSwitcherView,
            ResourceEditorView resourceEditorView)
        {
            _resourceSwitcherView = resourceSwitcherView;
            _resourceEditorView = resourceEditorView;
            _regionManager = regionManager;

            AddDashboardCommand<EntityCollectionViewModelBase<ResourceTypeViewModel, ResourceType>>(Resources.ResourceType.ToPlural(), Resources.Resourceses, 40);
            AddDashboardCommand<EntityCollectionViewModelBase<ResourceViewModel, Resource>>(Resources.Resource.ToPlural(), Resources.Resourceses, 40);
            AddDashboardCommand<EntityCollectionViewModelBase<ResourceStateViewModel, ResourceState>>(Resources.ResourceState.ToPlural(), Resources.Resourceses, 40);
            AddDashboardCommand<EntityCollectionViewModelBase<ResourceScreenViewModel, ResourceScreen>>(Resources.ResourceScreen.ToPlural(), Resources.Resourceses, 41);
        }
Exemplo n.º 2
0
        public ResourceModule(IRegionManager regionManager,
                              IUserService userService,
                              ResourceSwitcherView resourceSwitcherView,
                              ResourceEditorView resourceEditorView)
        {
            _resourceSwitcherView = resourceSwitcherView;
            _resourceEditorView   = resourceEditorView;
            _regionManager        = regionManager;

            AddDashboardCommand <EntityCollectionViewModelBase <ResourceTypeViewModel, ResourceType> >(Resources.ResourceType.ToPlural(), Resources.Resourceses, 40);
            AddDashboardCommand <EntityCollectionViewModelBase <ResourceViewModel, Resource> >(Resources.Resource.ToPlural(), Resources.Resourceses, 40);
            AddDashboardCommand <EntityCollectionViewModelBase <ResourceStateViewModel, ResourceState> >(Resources.ResourceState.ToPlural(), Resources.Resourceses, 40);
            AddDashboardCommand <EntityCollectionViewModelBase <ResourceScreenViewModel, ResourceScreen> >(Resources.ResourceScreen.ToPlural(), Resources.Resourceses, 41);
        }
Exemplo n.º 3
0
        public ResourceModule(IRegionManager regionManager,
            IUserService userService,
            ResourceSwitcherView resourceSwitcherView,
            ResourceEditorView resourceEditorView)
        {
            _resourceSwitcherView = resourceSwitcherView;
            _resourceEditorView = resourceEditorView;
            _regionManager = regionManager;

            AddDashboardCommand<EntityCollectionViewModelBase<ResourceViewModel, Resource>>(string.Format(Resources.List_f, Resources.Resource), Resources.Resourceses, 40);
            AddDashboardCommand<EntityCollectionViewModelBase<ResourceTemplateViewModel, ResourceTemplate>>(string.Format(Resources.List_f, Resources.ResourceTemplate), Resources.Resourceses, 40);
            AddDashboardCommand<EntityCollectionViewModelBase<ResourceStateViewModel, ResourceState>>(string.Format(Resources.List_f, Resources.ResourceState), Resources.Resourceses, 40);
            AddDashboardCommand<EntityCollectionViewModelBase<ResourceScreenViewModel, ResourceScreen>>(string.Format(Resources.List_f, Resources.ResourceScreen), Resources.Resourceses, 41);

            PermissionRegistry.RegisterPermission(PermissionNames.OpenLocations, PermissionCategories.Navigation, Resources.CanOpenLocationList);
            PermissionRegistry.RegisterPermission(PermissionNames.ChangeLocation, PermissionCategories.Ticket, Resources.CanChangeLocation);

               // WidgetCreatorRegistry.RegisterWidgetCreator(new ResourceButtonWidgetCreator());
        }