Beispiel #1
0
        public void Dispose()
        {
            for (int index = m_UserControlDisplays.Count - 1; index >= 0; index--)
            {
                UserControl1 userControl1 = m_UserControlDisplays[index].Display as UserControl1;

                if (userControl1 != null)
                {
                    userControl1.Dispose();
                }

                m_UserControlDisplays.RemoveAt(index);
            }

            m_UserControlDisplays.Clear();

            m_PrintForm.Dispose();

            m_UserControlDisplays = null;
            m_PrintForm           = null;
        }
Beispiel #2
0
        public void Initialize (Object passedObj)
        {
            ContentParameter parameters = passedObj as ContentParameter;

            if (parameters != null)
            {
                SysConfiguration SysConfig = parameters.SysConfig;

                if (String.IsNullOrWhiteSpace(SysConfig.ContainerDBConnectionString))
                {
                    throw new NotSupportedException();
                }

                CaseObject CaseObj = parameters.caseObject;

                try
                {
                    LayoutInfo layoutInfo = new LayoutInfo();
                    layoutInfo.Name = m_Name;
                    layoutInfo.Panel = PanelAssignment.InfoPanel;
                    layoutInfo.Display = new UserControl1(CaseObj, SysConfig);
                    layoutInfo.StatusItems = null;
                    m_UserControlDisplays.Add(layoutInfo);
                    m_PrintForm = new PrintForm(CaseObj);
                }
                catch (Exception ex)
                {
                    throw new NotSupportedException();
                }
            }
            else
            {
                throw new NotSupportedException();
            }
        }
Beispiel #3
0
        public void Dispose ()
        {
            for (int index = m_UserControlDisplays.Count - 1; index >= 0; index--)
            {
                UserControl1 userControl1 = m_UserControlDisplays[index].Display as UserControl1;

                if (userControl1 != null)
                {
                    userControl1.Dispose();
                }

                m_UserControlDisplays.RemoveAt(index);
            }

            m_UserControlDisplays.Clear();

            m_PrintForm.Dispose();

            m_UserControlDisplays = null;
            m_PrintForm = null;
        }