Example #1
0
 /// <summary>
 /// 销毁方法
 /// </summary>
 public override void delete()
 {
     if (!IsDeleted)
     {
         if (m_grid != null)
         {
             m_grid.removeEvent(m_gridCellClickEvent, FCEventID.GRIDCELLCLICK);
             m_grid.removeEvent(m_gridKeyDownEvent, FCEventID.KEYDOWN);
         }
         if (m_searchTextBox != null)
         {
             if (m_textBoxInputChangedEvent != null)
             {
                 m_searchTextBox.removeEvent(m_textBoxInputChangedEvent, FCEventID.TEXTCHANGED);
                 m_textBoxInputChangedEvent = null;
             }
             if (m_textBoxKeyDownEvent != null)
             {
                 m_searchTextBox.removeEvent(m_textBoxKeyDownEvent, FCEventID.KEYDOWN);
                 m_textBoxKeyDownEvent = null;
             }
         }
     }
     base.delete();
 }