예제 #1
0
        /// <summary>
        /// 移除单元格方法
        /// </summary>
        public override void onRemove()
        {
            FCGrid grid = Grid;

            if (m_control != null && grid != null)
            {
                m_control.removeEvent(m_touchDownEvent, FCEventID.TOUCHDOWN);
                m_control.removeEvent(m_touchMoveEvent, FCEventID.TOUCHMOVE);
                m_control.removeEvent(m_touchUpEvent, FCEventID.TOUCHUP);
                m_control.removeEvent(m_touchWheelEvent, FCEventID.TOUCHWHEEL);
                grid.removeControl(m_control);
            }
        }