示例#1
0
        protected override void Dispose(bool disposing)
        {
            if (m_pHOperator != null)
            {
                m_pHOperator.Dispose();
                m_pHOperator = null;
            }

            if (m_pHSelection != null)
            {
                m_pHSelection.Dispose();
                m_pHSelection = null;
                m_pHView.SetSelection((HSelectionSet)null);
            }

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

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

            base.Dispose(disposing);
        }
示例#2
0
 /*!
  * Disposes HOOPS/MVO components and then Disposes panel
  */
 public virtual void DisposePanel()
 {
     ((HBaseOperator)m_pHOperator).Dispose();
     m_pHSelection.Dispose();
     m_pHView.SetSelection((HSelectionSet)null);
     m_pHView.Dispose();
     m_pHModel.Dispose();
     this.Dispose();
 }