public void Initialize(Object passedObj) { ContentParameter parameters = passedObj as ContentParameter; CaseObject CaseObj = parameters.caseObject; SysConfiguration SysConfig = parameters.SysConfig; if (CaseObj != null) { LayoutInfo layoutInfo = new LayoutInfo(); layoutInfo.Name = m_Name; layoutInfo.Panel = PanelAssignment.InfoPanel; layoutInfo.Display = new UserControl1(CaseObj); layoutInfo.StatusItems = ((UserControl1)layoutInfo.Display).StatusDisplay; m_PrintForm = new PrintForm(CaseObj); m_UserControlDisplays.Add(layoutInfo); } else { throw new NotSupportedException(); } }
public void Initialize (Object passedObj) { ContentParameter parameters = passedObj as ContentParameter; CaseObject CaseObj = parameters.caseObject; SysConfiguration SysConfig = parameters.SysConfig; if (CaseObj != null) { LayoutInfo layoutInfo = new LayoutInfo(); layoutInfo.Name = m_Name; layoutInfo.Panel = PanelAssignment.InfoPanel; layoutInfo.Display = new UserControl1(CaseObj); layoutInfo.StatusItems = ((UserControl1)layoutInfo.Display).StatusDisplay; m_PrintForm = new PrintForm(CaseObj); m_UserControlDisplays.Add(layoutInfo); } else { throw new NotSupportedException(); } }