예제 #1
0
 public void OnPresent(object sender, EventArgs e)
 {
     if (OnPresentHandler != null)
     {
         OnPresentHandler.Invoke(this, e);
     }
 }
예제 #2
0
        /// <summary>Event Present(002)</summary>
        /// <param name="rtnFromServer"></param>
        /// <remarks>
        /// <para>1. Present狀態改變</para>
        /// <para>2. 收到 AskPresentStatus</para>
        /// </remarks>
        public void Present(ReturnFromServer rtnFromServer)
        {
            // rtnCode: 有無Present訊息
            var rtnCode = (EventPresentCode)(Convert.ToInt32(rtnFromServer.ReturnCode));

            if (OnPresentHandler != null)
            {
                var eventArgs = new OnPresentEventArgs(rtnCode);
                OnPresentHandler.Invoke(this, eventArgs);
            }
        }