Example #1
0
        private void TreeView_SelectedItemChanged(object sender, RoutedPropertyChangedEventArgs <object> e)
        {
            PatientModel item = e.NewValue as PatientModel;

            if (item != null)
            {
                item.RaiseChangePatientScreenCommand();
            }
            if (e.NewValue == DashboardItem)
            {
                var vm = DataContext as MainDrawerViewModel;
                vm.RaiseChangeDashboardCommand();
            }
        }