protected internal void ParameterPassingAfterLoad(ref ContentControl content, Func <bool> Validate, Action <bool> SetEnabledSave, Action <bool> SetReadOnlyFields)
 {
     DocumentControlVM = new DocumentControlVM(ref content, ImportEvidenceM.EvidenceList)
     {
         Validate          = Validate,
         SetEnabledSave    = SetEnabledSave,
         SetReadOnlyFields = SetReadOnlyFields,
         GetCode           = new Func <string>(() => ImportEvidenceM.Code),
         Type = false
     };
     DocumentControlVM.New(ImportEvidenceM.PatientId);
 }
예제 #2
0
 protected internal void ParameterPassingAfterLoad(ref ContentControl content, Func <bool> Validate, Action <bool> SetEnabledSave, Action <bool> SetReadOnlyFields)
 {
     DocumentControlVM = new DocumentControlVM(ref content, NewExaminationM.ExaminationList)
     {
         Validate          = Validate,
         SetEnabledSave    = SetEnabledSave,
         SetReadOnlyFields = SetReadOnlyFields,
         GetName           = new Func <string>(() => NewExaminationM.SelectedTreat),
         GetCode           = new Func <string>(() => NewExaminationM.ExaminationCode),
         Type = true
     };
     DocumentControlVM.New(NewExaminationM.PatientId);
 }