protected internal void ParameterPassingAfterLoad(ref ContentControl content, Func <bool> Validate, Action <bool> SetEnabledSave, Action <bool> SetReadOnlyFields) { DocumentControlVM = new DocumentControlVM(ref content, EditEvidenceM.EvidenceList) { Validate = Validate, SetEnabledSave = SetEnabledSave, SetReadOnlyFields = SetReadOnlyFields, GetCode = new Func <string>(() => EditEvidenceM.Code), Type = false }; DocumentControlVM.Edit(EditEvidenceM.PatientId); Loading.RunWorkerAsync(); }