public MedSheetWindow(VisitRecord visit)
 {
     InitializeComponent();
     view = new ViewModelMedSheet(visit);
     this.DataContext = view;
 }
 public List<TreatRegiment> GetTreatRegiment(VisitRecord vis)
 {
     var q = c.Patients.Where(v => v.Id == vis.Id).Include("MedSheet").First();
     return q.MedSheet.TreatRegiments;
 }
 public TreatRegimentWindow(VisitRecord vis)
 {
     view = new ViewModelTreatRegiment(vis);
     InitializeComponent();
     this.DataContext = view;
 }