public IConnectionStateViewModel CreateConnectionStateViewModel(IConnectionState connectionState)
        {
            IConnectionStateViewModel connectionStateViewModel = StaticContainer.Container.Resolve <IConnectionStateViewModel>();

            connectionStateViewModel.Model = connectionState;
            return(connectionStateViewModel);
        }
Esempio n. 2
0
        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>();
        }
Esempio n. 3
0
 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);
 }