Beispiel #1
0
 /// <summary>
 ///  イベントに設定されたエラーコード取得
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public int GetEventErrCode(int id)
 {
     try {
         PEventManager.PEvent ev = _eventCtrl.GetEvent(id);
         return(ev.ErrorCode());
     }
     catch (Exception) {
         return((int)ErrCode.ERR_PARAM);
     }
 }
Beispiel #2
0
        /// <summary>
        ///  軸の移動
        /// </summary>
        /// <param name="data">{"RX":xxxx,"RY":yyyy}</param>
        /// <returns></returns>
        public int Move(Dictionary <string, int> data, PEventManager.PEvent evObj)
        {
            Trace.TraceFormat("Entry");

            int id = MoveAxis(data, evObj);

            if (id < 0)
            {
                Trace.TraceFormat("[ERR]ret={0}", id);
                evObj.Flush();
                return(evObj.ErrorCode());
            }
            Trace.TraceFormat("Leave:EventID={0}", evObj._number);
            return(evObj._number);
        }