// Constructor public CreateDeviceTypeViewModel() : base() { // Services initialiseren _deviceTypeDataService = (IDeviceTypeDataService)AppContainer.Instance.Resolve(typeof(IDeviceTypeDataService)); InitCommands(); }
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; }
// 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); }
public ProtocolDataService(IDeviceTypeDataService deviceTypeDataService) { this.deviceTypeDataService = deviceTypeDataService; }
public DeviceService(IDeviceTypeDataService deviceTypeDataService, IDeviceDataService deviceDataService) { this.deviceTypeDataService = deviceTypeDataService; this.deviceDataService = deviceDataService; }
public DeviceMapper(IDeviceTypeDataService deviceTypeDataService, IMapper mapper) { this.deviceTypeDataService = deviceTypeDataService; this.mapper = mapper; }
public void Init() { deviceTypeDataService = new MockDeviceTypeDataService(); dialogService = new MockDialogService(); }