Exemplo n.º 1
0
        void ShowSiteSettings()
        {
            var siteSetVM = (StudySitesViewModel)Workspaces.FirstOrDefault(w => w is StudySitesViewModel);

            if (siteSetVM == null)
            {
                siteSetVM =
                    new StudySitesViewModel
                        (new StudySitesModel(Mapper.Map <IEnumerable <StudySiteItemModel> >(_repository.LocalStudyCentres)), _repository);
                this.Workspaces.Add(siteSetVM);
            }
            this.SetActiveWorkspace(siteSetVM);
        }
Exemplo n.º 2
0
        void CreatePages()
        {
            _pages      = new List <WizardPageViewModel>();
            BackupModel = new BackupDirectionModel();
            var backupDirectionVM = new BackupDirectionViewModel(BackupModel);

            backupDirectionVM.PropertyChanged += BackupDirectionVM_PropertyChanged;
            _pages.Add(backupDirectionVM);
            if (!IsAnyStudyCentres)
            {
                SitesModel = new StudySitesModel();
                _sitesVm   = new StudySitesViewModel(SitesModel);
                _pages.Add(_sitesVm);
            }

            _pages.Add(new CloudDirectoryViewModel(BackupModel));
        }