public void Initialize(Object passedObj) { ContentParameter parameters = passedObj as ContentParameter; m_CaseObj = parameters.caseObject; SysConfiguration SysConfig = parameters.SysConfig; if (m_CaseObj.attachments.CountofType(AttachmentType.XRayImage) > 0) { m_XrayDisplays = new XRayDisplays(m_CaseObj, SysConfig); m_UserControlDisplays = m_XrayDisplays.Displays; } else { throw new NotSupportedException(); } }