public void OnStagePosition(object sender, EventArgs e) { this.SetStagePosition(((OnStagePositionEventArgs)e).ReturnCode); if (OnStagePositionHandler != null) { OnStagePositionHandler.Invoke(this, e); } }
/// <summary>Event StagePosition (017)</summary> /// <param name="rtnFromServer"></param> /// <remarks> /// <para>1. Stage位置改變</para> /// <para>2. 收到AskStagePosition</para> /// </remarks> public void StagePosition(ReturnFromServer rtnFromServer) { // rtnCode: Stage 位置 var rtnCode = (EventStagePositionCode)(Convert.ToInt32(rtnFromServer.ReturnCode)); if (OnStagePositionHandler != null) { var eventArgs = new OnStagePositionEventArgs(rtnCode); OnStagePositionHandler.Invoke(this, eventArgs); } }