public FileListingController(FileListingViewModel ViewModel, MainMenuViewModel MenuViewModel, IMessenger Messenger, IMapper Mapper, IUpkFileRepository Repository, IUpkFileRemoteRepository RemoteRepository) {
          viewModel = ViewModel;
      menuViewModel = MenuViewModel;

      messenger = Messenger;
         mapper = Mapper;

      repository = Repository;

      remoteRepository = RemoteRepository;

      viewModel.Files = new ObservableCollection<FileViewEntity>();

      viewModel.FilterText = String.Empty;

          viewModel.PropertyChanged += onViewModelPropertyChanged;
      menuViewModel.PropertyChanged += onMenuViewModelPropertyChanged;

      allFiles = new List<DomainUpkFile>();

      allFileEntities = new List<FileViewEntity>();

      registerMessages();
      registerCommands();
    }
示例#2
0
        public FileListingController(FileListingViewModel ViewModel, NotesViewModel NotesViewModel, MainMenuViewModel MenuViewModel, IMessenger Messenger, IMapper Mapper, IUpkFileRepository Repository, IUpkFileRemoteRepository RemoteRepository)
        {
            viewModel         = ViewModel;
            notesViewModel    = NotesViewModel;
            menuViewModel     = MenuViewModel;
            rebuildController = menuViewModel.rebuildController;

            messenger = Messenger;
            mapper    = Mapper;

            repository = Repository;

            remoteRepository = RemoteRepository;

            viewModel.Files = new ObservableCollection <FileViewEntity>();

            viewModel.FilterText = String.Empty;

            viewModel.PropertyChanged     += onViewModelPropertyChanged;
            menuViewModel.PropertyChanged += onMenuViewModelPropertyChanged;

            allFiles = new List <DomainUpkFile>();

            allFileEntities = new List <FileViewEntity>();
        }
示例#3
0
        public HeaderController(HeaderViewModel ViewModel, IMessenger Messenger, IMapper Mapper, IUpkFileRemoteRepository RemoteRepository)
        {
            viewModel = ViewModel;

            messenger = Messenger;
            mapper    = Mapper;

            remoteRepository = RemoteRepository;
        }
示例#4
0
    public HeaderController(HeaderViewModel ViewModel, IMessenger Messenger, IMapper Mapper, IUpkFileRemoteRepository RemoteRepository) {
      viewModel = ViewModel;

      messenger = Messenger;
         mapper = Mapper;

      remoteRepository = RemoteRepository;

      registerMessages();
      registerCommands();
    }