Exemple #1
0
 public void Dispose()
 {
     if (m_ChartDetail != null)
     {
         DataTable oldDataSource = m_ChartDetail.DataSource;
         if (oldDataSource != null)
         {
             m_ChartDetail.DataSource = null;
             DbDisposeHelper.DisposeTable(ref oldDataSource, true);
         }
         m_ChartDetail.Dispose();
         m_ChartDetail = null;
     }
     if (m_SharedPresenter != null)
     {
         m_SharedPresenter.Dispose();
     }
 }
Exemple #2
0
 public void Dispose()
 {
     if (m_AvrPivot != null)
     {
         AvrPivotGridData oldDataSource = m_AvrPivot.DataSource;
         if (oldDataSource != null)
         {
             m_AvrPivot.DataSource = null;
             oldDataSource.Dispose();
         }
         if (m_SharedPresenter != null)
         {
             m_SharedPresenter.UnregisterView(m_AvrPivot);
             m_SharedPresenter.Dispose();
         }
         m_AvrPivot = null;
     }
     if (m_PivotPlaceHolder != null)
     {
         m_PivotPlaceHolder.Dispose();
         m_PivotPlaceHolder = null;
     }
 }