public MonitoredObject(object o, string reportNo) { this.m_Object = o; this.m_ReportNo = reportNo; Business.Persistence.ObjectCloner objectCloner = new Persistence.ObjectCloner(); this.m_Clone = objectCloner.Clone(o); }
private static Test GetTestClone(Test test) { YellowstonePathology.Business.Persistence.ObjectCloner objectCloner = new Persistence.ObjectCloner(); Test result = (Test)objectCloner.Clone(test); return(result); }
public ThinPrepPapSpecimenPath(YellowstonePathology.Domain.ClientOrder.Model.CytologyClientOrder clientOrder, YellowstonePathology.Domain.ClientOrder.Model.ClientOrderDetail clientOrderDetail, ClientOrderDetailWizardModeEnum clientOrderDetailWizardMode) { this.m_ClientOrder = clientOrder; this.m_ClientOrderDetail = clientOrderDetail; this.m_ClientOrderDetailWizardMode = clientOrderDetailWizardMode; if (this.m_ClientOrderDetailWizardMode == ClientOrderDetailWizardModeEnum.AddNew) { this.m_ClientOrderDetail.Description = "Thin Prep Fluid"; this.m_ClientOrderDetail.OrderType = "Thin Prep Pap"; } YellowstonePathology.Persistence.ObjectCloner objectCloner = new Persistence.ObjectCloner(); this.m_ClientOrderDetailClone = (YellowstonePathology.Domain.ClientOrder.Model.ClientOrderDetail)objectCloner.Clone(this.m_ClientOrderDetail); this.m_ClientOrderClone = (YellowstonePathology.Domain.ClientOrder.Model.CytologyClientOrder)objectCloner.Clone(this.m_ClientOrder); }