Beispiel #1
0
        /// <summary>
        /// réponse à la commande click
        /// </summary>
        private void NavigateToCreateObservation(object obj)
        {
            int?idSelectedPatient = obj as int?;

            if (idSelectedPatient.HasValue)
            {
                View.CreateObservationView           window = new View.CreateObservationView();
                ViewModel.CreateObservationViewModel vm     = new CreateObservationViewModel(window, idSelectedPatient.Value);
                window.DataContext = vm;

                _ns = NavigationService.GetNavigationService(_linkedView);
                _ns.Navigate(window);
            }
        }
        /// <summary>
        /// réponse à la commande click
        /// </summary>
        private void NavigateToCreateObservation(object obj)
        {
            int? idSelectedPatient = obj as int?;
            if (idSelectedPatient.HasValue) {
                View.CreateObservationView window = new View.CreateObservationView();
                ViewModel.CreateObservationViewModel vm = new CreateObservationViewModel(window, idSelectedPatient.Value);
                window.DataContext = vm;

                _ns = NavigationService.GetNavigationService(_linkedView);
                _ns.Navigate(window);
            }
        }