Exemple #1
0
 private async void   OnSelectedItemChangedExecute(int?arg)
 {
     if (arg != null)
     {
         await FilesOnDriveViewModel.LoadAsync((int)arg);
     }
     EventAggregator.GetEvent <SelectedItemChangedEvent>().Publish(arg ?? 0);
 }
Exemple #2
0
        public override async Task LoadAsync(int id)
        {
            var drive = id > 0 ?
                        await _repository.GetByIdAsync(id) :
                        CreateNewDrive();

            _allFilesOnDrive = _repository.GetAllFilesOnDriveById(id);
            Id = id;
            InitializedDrive(drive);
            InitializeArchiveEntitys();

            var        bootstrapper = new Bootstrapper();
            IContainer container    = bootstrapper.Bootstrap();

            Title = Drive.Title;
            _filesOnDriveViewModel = container.Resolve <FilesOnDriveViewModel>();

            // _filesOnDriveViewModel.Load(Id);


            //     await LoadProgrammingLanguagesLookup();Drive.Model.ArchiveEntities
        }