Exemple #1
0
 public ClientShellViewModel(IEventAggregator eventAggregator, IUnityContainer unityContainer, IRegionManager regionManager)
 {
     this.eventAggregator    = eventAggregator;
     ListViewModel           = new LeftListViewModel(this);
     HorizontalTabsViewModel = new HorizontalTabsViewModel();
     RegionHandlers          = new RegionHandlers(eventAggregator, unityContainer, regionManager);
     RegionHandlers.Parent   = this;
     eventAggregator.GetEvent <UserLoginEvent>().Subscribe(ConnectToServerAndLogin);
     ChangeCredentialsButton = new ActionButtonViewModel("", new DelegateCommand(OnChangeCredentials), DSA.Common.Infrastructure.ImagePath.DentistProfile);
     this.eventAggregator.GetEvent <TotalsModifiedEvent>().Subscribe(OnChangeTotalInfo);
     InterventionsGeneralDetailsViewModel = new InterventionsGeneralDetailsViewModel();
     DownLoadDatabaseFromFtp();
 }
Exemple #2
0
 public static PatientViewModel ToPatientViewModel(this LocalPatient localPatient, LeftListViewModel parent)
 {
     return(new PatientViewModel(parent)
     {
         Id = localPatient.Id,
         Name = localPatient.Name,
         Surname = localPatient.Surname,
         Address = localPatient.Address,
         City = localPatient.City,
         Phone = localPatient.Phone,
         Email = localPatient.Email
     });
 }
 public PatientViewModel(LeftListViewModel parent)
 {
     Parent            = parent;
     SavePatientButton = new ActionButtonViewModel("Save", new DelegateCommand(OnSave));
 }