Ejemplo n.º 1
0
 /// <summary>Event ButtonEvent(120)</summary>
 /// <param name="reply">回覆的訊息(執行結果)</param>
 /// <remarks>
 /// <para>除非規格書有異動, 否則</para>
 /// <para>1. 函式名稱不得修改</para>
 /// <para>2. 函式不得刪除</para>
 /// </remarks>
 public void ButtonEvent(ReplyMessage reply)
 {
     if (OnButtonEventHandler != null)
     {
         OnButtonEventHandler.Invoke(this, EventArgs.Empty);
     }
 }
Ejemplo n.º 2
0
        private void OnButtonEvent(object sender, EventArgs e)
        {
            if (PressButtonToLoad != null)
            {
                PressButtonToLoad.Invoke();
            }

            if (OnButtonEventHandler != null)
            {
                OnButtonEventHandler.Invoke(this, e);
            }
        }
Ejemplo n.º 3
0
        private void OnButtonEvent(object sender, EventArgs e)
        {
            Debug.WriteLine("Drawer IP=" + this.DeviceIP + ", Event=" + "OnButtonEvent");
            if (PressButtonToLoad != null)
            {
                PressButtonToLoad.Invoke();
            }

            if (OnButtonEventHandler != null)
            {
                OnButtonEventHandler.Invoke(this, e);
            }
        }