Ejemplo n.º 1
0
        private void AddStudy()
        {
            Study s = new Study();

            s.Practice = DesktopApplication.CurrentPratice;
            ((Patient)Item).Studies.Add(s);
            StudyViewModel vm = new StudyViewModel(s);

            Studies.Add(vm);
            SelectedStudy = vm;
        }
Ejemplo n.º 2
0
        public override void NonUIThreadInitialize()
        {
            base.NonUIThreadInitialize();

            if (((Patient)Item).Studies == null)
            {
                DesktopApplication.ShowDialog("Error", "Studies are null??");
            }
            else
            {
                foreach (Study s in ((Patient)Item).Studies)
                {
                    StudyViewModel svm = new StudyViewModel(s);
                    Studies.Add(svm);
                }
            }
        }