public static void Clear()
 {
     DelManager.fButtonDelegate      = null;
     DelManager.sButtonDelegate      = null;
     DelManager.onGoClick            = null;
     DelManager.sprClickEventHandler = null;
 }
        protected virtual void RaiseButtonClick(System.Object sender, ButtonClickEventArgs ea)
        {
            ButtonClickEventHandler handler = ButtonClick;

            if (handler != null)
            {
                handler(sender, ea);
            }
        }
    public void RegisterClickEventHandler(ButtonClickEventHandler eventHandler)
    {
        UIEventListener expr_06 = this.GetUIEventListener();

        expr_06.onClick = (UIEventListener.VoidDelegate)Delegate.Remove(expr_06.onClick, new UIEventListener.VoidDelegate(this.OnButtonClick));
        UIEventListener expr_2D = this.GetUIEventListener();

        expr_2D.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_2D.onClick, new UIEventListener.VoidDelegate(this.OnButtonClick));
        this.m_buttonClickEventHandler = eventHandler;
    }
Beispiel #4
0
 /// <summary>
 /// 设置按钮点击处理函数
 /// </summary>
 /// <param name="handler">点击函数名</param>
 public void SetClickEventHandler(ButtonClickEventHandler handler)
 {
     _buttonClick = new ButtonClickEventHandler(handler);
 }
Beispiel #5
0
 public void RegisterClickEventHandler(ButtonClickEventHandler eventHandler)
 {
     this.m_buttonClickEventHandler = eventHandler;
 }
 public void RegisterClickEventHandler(ButtonClickEventHandler A)
 {
 }