Exemplo n.º 1
0
 public void OnVacuumComplete(object sender, EventArgs e)
 {
     if (OnVacuumCompleteHandler != null)
     {
         OnVacuumCompleteHandler.Invoke(this, e);
     }
 }
Exemplo n.º 2
0
        /// <summary>Event VacummComplete(007)</summary>
        /// <param name="rtnFromServer"></param>
        /// <remarks>
        /// <para>1. Load貨完成後底盤吸住</para>
        /// <para>2. 收到AskVacuumStatus</para>
        /// <para>3. 底座真空狀態改變</para>
        /// </remarks>
        public void VacuumComplete(ReturnFromServer rtnFromServer)
        {
            // rtnCode: 是否建立真空
            var rtnCode = (EventVacuumCompleteCode)(Convert.ToInt32(rtnFromServer.ReturnCode));

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