Example #1
0
        private void LoadRepos()
        {
            try
            {
                IUnitOfWork ctx = SimpleIoc.Default.GetInstance<OphtalmoContext>();

                ExamensRepository = new Repository<Examen>(ctx);
                ComptesRendusRepository = new Repository<CompteRendu>(ctx);
                MedecinRepository = new Repository<Medecin>(ctx);
                ExamensBasicsRepository = new XmlRepository<Examen>("exams.config");
                ExamenBasics = new ObservableCollection<Examen>(ExamensBasicsRepository.Get().ToList());
                FindMedecin();
            }
            catch (Exception e)
            {
                e.SaveException();
            }
        }
 public void LoadRepo()
 {
     try
     {
         ExamensRepository=new XmlRepository<Examen>("exams.config");
         ConfigRepository=new XmlRepository<ModelsLib.Login>("config.xml");
         Examens = new ObservableCollection<Examen>(ExamensRepository.Get());
     }
     catch (Exception e)
     {
         e.SaveException();
     }
 }
Example #3
0
 private void LoadConfigLogin()
 {
     try
     {
         var confRepo=new XmlRepository<ModelsLib.Login>("config.xml");
         Login = confRepo.Get().FirstOrDefault();
     }
     catch (Exception e)
     {
         e.SaveException();
     }
 }