/// <summary> /// Constructeur /// </summary> public HomeViewModel() { // Set-up commands DisconnectCommand = new RelayCommand(param => Disconnect(), param => true); UserProfileCommand = new RelayCommand(param => UserProfile(), param => true); AllPatientCommand = new RelayCommand(param => AllPatient(), param => true); AllUserCommand = new RelayCommand(param => AllUser(), param => true); // Loading default viewmodel CurrentViewModel = new PatientManagementViewModel(); SourceTemp = new ObservableDataSource<Point>(); SourceTemp.SetXYMapping(p => p); SourceHeart = new ObservableDataSource<Point>(); SourceHeart.SetXYMapping(p => p); /* ServiceLive.ServiceLiveClient serviceClient = new ServiceLive.ServiceLiveClient(); serviceClient.Subscribe(); */ }
/// <summary> /// Gestion patients /// </summary> private void AllPatient() { CurrentViewModel = new PatientManagementViewModel(); }