public IConnectionStateViewModel CreateConnectionStateViewModel(IConnectionState connectionState) { IConnectionStateViewModel connectionStateViewModel = StaticContainer.Container.Resolve <IConnectionStateViewModel>(); connectionStateViewModel.Model = connectionState; return(connectionStateViewModel); }
public TransactionCompleteSubscription(DeviceContext deviceContext, IConnectionState connectionState, IConnectionStateViewModel connectionStateViewModel, ITypesContainer container, Action onConnectionRetriesCounterOverflow) { _deviceContext = deviceContext; _connectionState = connectionState; _connectionStateViewModel = connectionStateViewModel; _container = container; _onConnectionRetriesCounterOverflow = Result <Action> .Create(onConnectionRetriesCounterOverflow, true); _connectionService = container.Resolve <IConnectionService>(); }
public DeviceViewModel(IDevicesContainerService devicesContainerService, IConnectionStateViewModel connectionStateViewModel, IDeviceLoggerViewModel deviceLoggerViewModel, IApplicationGlobalCommands applicationGlobalCommands, ILoadAllService loadAllService, ISerializerService serializerService) { _devicesContainerService = devicesContainerService; _applicationGlobalCommands = applicationGlobalCommands; _loadAllService = loadAllService; _serializerService = serializerService; _fragmentViewModels = new ObservableCollection <IFragmentViewModel>(); NavigateToDeviceEditingCommand = new RelayCommand(OnNavigateToDeviceEditing); DeleteSelectedDeviceCommand = new RelayCommand(OnDeleteSelectedDevice); ConnectionStateViewModel = connectionStateViewModel; DeviceLoggerViewModel = deviceLoggerViewModel; NavigateToLoadAllFromDeviceCommand = new RelayCommand(OnNavigateToLoadAllWindow); }