Esempio n. 1
0
 public ConfiguratorService(IFileService fileService, IVariableStore variables,
                            ITaskCommandFactory commandFactory, ITemplateManager templateManager, IApplicationSettings settings)
 {
     _fileService     = fileService;
     _variables       = variables;
     _commandFactory  = commandFactory;
     _templateManager = templateManager;
     _settings        = settings;
 }
Esempio n. 2
0
        public ListViewDTOWrapper(ListViewDTO _dto, ITaskCommandFactory _taskCommandFactory)
        {
            TaskCommandFactory = _taskCommandFactory;
            DTO    = _dto;
            TaskID = _dto.TaskID;
            Status = new ReactiveProperty <Domain.Status>(_dto.Status, ReactivePropertyMode.DistinctUntilChanged).AddTo(DisposeCollection);
            Title  = _dto.Title;

            Status.Subscribe(Save).AddTo(DisposeCollection);
        }
Esempio n. 3
0
        public InputViewModel(
            ITaskFactory _taskFactory
            , ITaskCommandFactory _taskCommandFactory
            )
        {
            TaskFactory        = _taskFactory;
            TaskCommandFactory = _taskCommandFactory;

            SaveCommand.Subscribe(Save).AddTo(DisposeCollection);
        }
Esempio n. 4
0
        public ListModel(
            IListViewDTORepository _listViewDTORepository
            , IMessageBroker _messageBroker
            , IEventAggregator _eventAggregator
            , ITaskCommandFactory _taskCommandFactory
            )
        {
            ListViewDTORepository = _listViewDTORepository;
            MessageBroker         = _messageBroker;
            EventAggregator       = _eventAggregator;
            TaskCommandFactory    = _taskCommandFactory;

            BindingOperations.EnableCollectionSynchronization(Tasks, new object());

            MessageBroker.Subscribe <AddedTaskEvent>(AddedTask).AddTo(DisposeCollection);
            MessageBroker.Subscribe <EditedTaskEvent>(EditedTask).AddTo(DisposeCollection);
            MessageBroker.Subscribe <ChangedTaskEvent>(ChangedTask).AddTo(DisposeCollection);

            SelectedTask.Where(t => t != null).Subscribe(PublishSelectedTaskEvent).AddTo(DisposeCollection);
        }