Beispiel #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();
 }
 public ClientShellView(RegionHandlers regionHandlers, ClientShellViewModel activeClientShellViewModel)
 {
     InitializeComponent();
     DataContext = activeClientShellViewModel;
 }