// Constructor
        public CreateDeviceTypeViewModel() : base()
        {
            // Services initialiseren
            _deviceTypeDataService = (IDeviceTypeDataService)AppContainer.Instance.Resolve(typeof(IDeviceTypeDataService));

            InitCommands();
        }
Example #2
0
 public AddAssetCommandHandler(IDeviceTypeDataService deviceTypeDataService,
                               IRepository repository, IDeviceService deviceService)
 {
     this.deviceTypeDataService = deviceTypeDataService;
     this.repository            = repository;
     this.deviceService         = deviceService;
 }
 public ChangeDeviceCommandHandler(IDeviceTypeDataService deviceTypeDataService,
                                   IRepository repository, IAssetDataService assetDataService, IDeviceService deviceService)
 {
     this.deviceTypeDataService = deviceTypeDataService;
     this.repository            = repository;
     this.assetDataService      = assetDataService;
     this.deviceService         = deviceService;
 }
Example #4
0
        // Constructor
        public CreateIncidentViewModel()
        {
            // Services initialiseren
            _deviceTypeDataService = (IDeviceTypeDataService)AppContainer.Instance.Resolve(typeof(IDeviceTypeDataService));
            _incidentDataService   = (IIncidentDataService)AppContainer.Instance.Resolve(typeof(IIncidentDataService));

            InitCommands();
            LoadDeviceTypes();
        }
        public DeviceTypeOverviewViewModel(IDeviceTypeDataService deviceTypeDataService, IDialogService dialogService)
        {
            this.deviceTypeDataService = deviceTypeDataService;
            this.dialogService         = dialogService;

            LoadData();
            LoadCommands();

            Messenger.Default.Register <UpdateListMessage>(this, OnUpdateListMessageReceived, ViewType.DeviceType);
            Messenger.Default.Register <OpenOverviewMessage>(this, OnDeviceTypeOverviewOpened, ViewType.DeviceType);
        }
        public DeviceTypeDetailViewModel(IDeviceDataService deviceDataService, IDeviceTypeDataService deviceTypeDataService, IDialogService dialogService)
        {
            this.deviceDataService     = deviceDataService;
            this.deviceTypeDataService = deviceTypeDataService;
            this.dialogService         = dialogService;

            LoadCommands();

            Messenger.Default.Register <OpenDetailViewMessage>(this, OnNewDeviceTypeWindow, ViewType.DeviceType);
            Messenger.Default.Register <DeviceType>(this, OnDeviceTypeReceived, ViewType.DeviceType); // TO DO: use OpenDetailViewMessage, but pass DeviceType with it
            Messenger.Default.Register <EmployeeDataService>(this, OnCurrentEmployeeReceived, ViewType.DeviceType);
        }
Example #7
0
 public ProtocolDataService(IDeviceTypeDataService deviceTypeDataService)
 {
     this.deviceTypeDataService = deviceTypeDataService;
 }
Example #8
0
 public DeviceService(IDeviceTypeDataService deviceTypeDataService, IDeviceDataService deviceDataService)
 {
     this.deviceTypeDataService = deviceTypeDataService;
     this.deviceDataService     = deviceDataService;
 }
Example #9
0
 public DeviceMapper(IDeviceTypeDataService deviceTypeDataService, IMapper mapper)
 {
     this.deviceTypeDataService = deviceTypeDataService;
     this.mapper = mapper;
 }
 public void Init()
 {
     deviceTypeDataService = new MockDeviceTypeDataService();
     dialogService         = new MockDialogService();
 }