Beispiel #1
0
 /// <summary>
 /// 销毁方法
 /// </summary>
 public override void delete()
 {
     if (!IsDeleted)
     {
         if (m_downButton != null)
         {
             if (m_downButtoTouchDownEvent != null)
             {
                 m_downButton.removeEvent(m_downButtoTouchDownEvent, FCEventID.TOUCHDOWN);
                 m_downButtoTouchDownEvent = null;
             }
             if (m_downButtoTouchUpEvent != null)
             {
                 m_downButton.removeEvent(m_downButtoTouchUpEvent, FCEventID.TOUCHUP);
                 m_downButtoTouchUpEvent = null;
             }
         }
         if (m_upButton != null)
         {
             if (m_upButtonTouchDownEvent != null)
             {
                 m_upButton.removeEvent(m_upButtonTouchDownEvent, FCEventID.TOUCHDOWN);
                 m_upButtonTouchDownEvent = null;
             }
             if (m_upButtonTouchUpEvent != null)
             {
                 m_upButton.removeEvent(m_upButtonTouchUpEvent, FCEventID.TOUCHUP);
                 m_upButtonTouchUpEvent = null;
             }
         }
     }
     base.delete();
 }
Beispiel #2
0
 /// <summary>
 /// 销毁方法
 /// </summary>
 public override void delete()
 {
     if (!IsDeleted)
     {
         if (m_calendar != null)
         {
             if (m_selectedTimeChangedEvent != null)
             {
                 m_calendar.removeEvent(m_selectedTimeChangedEvent, FCEventID.SELECTEDTIMECHANGED);
                 m_selectedTimeChangedEvent = null;
             }
         }
         if (m_dropDownButton != null)
         {
             if (m_dropDownButtonTouchDownEvent != null)
             {
                 m_dropDownButton.removeEvent(m_dropDownButtonTouchDownEvent, FCEventID.TOUCHDOWN);
                 m_dropDownButtonTouchDownEvent = null;
             }
         }
         if (m_dropDownMenu != null)
         {
             Native.removeControl(m_dropDownMenu);
             m_dropDownMenu.delete();
             m_dropDownMenu = null;
         }
     }
     base.delete();
 }
Beispiel #3
0
 /// <summary>
 /// 销毁方法
 /// </summary>
 public override void delete()
 {
     if (!IsDeleted)
     {
         if (m_dropDownButton != null)
         {
             if (m_dropDownButtonTouchDownEvent != null)
             {
                 m_dropDownButton.removeEvent(m_dropDownButtonTouchDownEvent, FCEventID.TOUCHDOWN);
                 m_dropDownButtonTouchDownEvent = null;
             }
         }
         if (m_dropDownMenu != null)
         {
             if (m_menuItemClickEvent != null)
             {
                 m_dropDownMenu.removeEvent(m_menuItemClickEvent, FCEventID.MENUITEMCLICK);
                 m_menuItemClickEvent = null;
             }
             if (m_menuKeyDownEvent != null)
             {
                 m_dropDownMenu.removeEvent(m_menuKeyDownEvent, FCEventID.KEYDOWN);
                 m_menuKeyDownEvent = null;
             }
             Native.removeControl(m_dropDownMenu);
             m_dropDownMenu.delete();
             m_dropDownMenu = null;
         }
     }
     base.delete();
 }
Beispiel #4
0
 /// <summary>
 /// 销毁方法
 /// </summary>
 public override void delete()
 {
     if (!IsDeleted)
     {
         stopTimer(m_timerID);
         if (m_addButton != null)
         {
             if (m_addButtonTouchDownEvent != null)
             {
                 m_addButton.removeEvent(m_addButtonTouchDownEvent, FCEventID.TOUCHDOWN);
                 m_addButtonTouchDownEvent = null;
             }
             if (m_addButtonTouchUpEvent != null)
             {
                 m_addButton.removeEvent(m_addButtonTouchUpEvent, FCEventID.TOUCHUP);
                 m_addButtonTouchUpEvent = null;
             }
         }
         if (m_scrollButton != null)
         {
             if (m_scrollButtonDraggingEvent != null)
             {
                 m_scrollButton.removeEvent(m_scrollButtonDraggingEvent, FCEventID.DRAGGING);
                 m_scrollButtonDraggingEvent = null;
             }
         }
         if (m_reduceButton != null)
         {
             if (m_reduceButtonTouchDownEvent != null)
             {
                 m_reduceButton.removeEvent(m_reduceButtonTouchDownEvent, FCEventID.TOUCHDOWN);
                 m_reduceButtonTouchDownEvent = null;
             }
             if (m_reduceButtonTouchUpEvent != null)
             {
                 m_reduceButton.removeEvent(m_reduceButtonTouchUpEvent, FCEventID.TOUCHUP);
                 m_reduceButtonTouchUpEvent = null;
             }
         }
     }
     base.delete();
 }
Beispiel #5
0
 /// <summary>
 /// 销毁方法
 /// </summary>
 public override void delete()
 {
     if (!IsDeleted)
     {
         FCButton backButton = BackButton;
         if (backButton != null)
         {
             if (m_backButtonTouchDownEvent != null)
             {
                 backButton.removeEvent(m_backButtonTouchDownEvent, FCEventID.TOUCHDOWN);
                 m_backButtonTouchDownEvent = null;
             }
             if (m_backButtonTouchUpEvent != null)
             {
                 backButton.removeEvent(m_backButtonTouchUpEvent, FCEventID.TOUCHUP);
                 m_backButtonTouchUpEvent = null;
             }
         }
     }
     base.delete();
 }
Beispiel #6
0
 /// <summary>
 /// 销毁方法
 /// </summary>
 public override void delete()
 {
     if (!IsDeleted)
     {
         if (m_dragHeaderBeginEvent != null)
         {
             if (m_headerButton != null)
             {
                 m_headerButton.removeEvent(m_dragHeaderBeginEvent, FCEventID.DRAGBEGIN);
             }
             m_dragHeaderBeginEvent = null;
         }
         if (m_dragHeaderEndEvent != null)
         {
             if (m_headerButton != null)
             {
                 m_headerButton.removeEvent(m_dragHeaderEndEvent, FCEventID.DRAGEND);
             }
             m_dragHeaderEndEvent = null;
         }
         if (m_draggingHeaderEvent != null)
         {
             if (m_headerButton != null)
             {
                 m_headerButton.removeEvent(m_draggingHeaderEvent, FCEventID.DRAGGING);
             }
             m_draggingHeaderEvent = null;
         }
         if (m_headerTouchDownEvent != null)
         {
             if (m_headerButton != null)
             {
                 m_headerButton.removeEvent(m_headerTouchDownEvent, FCEventID.TOUCHDOWN);
             }
             m_headerTouchDownEvent = null;
         }
         m_headerButton = null;
     }
     base.delete();
 }
Beispiel #7
0
 /// <summary>
 /// 销毁方法
 /// </summary>
 public override void delete()
 {
     if (!IsDeleted)
     {
         if (m_splitterDraggingEvent != null)
         {
             if (m_splitter != null)
             {
                 m_splitter.removeEvent(m_splitterDraggingEvent, FCEventID.DRAGGING);
                 m_splitterDraggingEvent = null;
             }
         }
     }
     base.delete();
 }