Business.MpcPlayerBusiness.Player_MPC_CurrentPosition C# (CSharp) Method

Player_MPC_CurrentPosition() private method

Raise PositionChanged event.
private Player_MPC_CurrentPosition ( MPC msg ) : void
msg MPC
return void
        private void Player_MPC_CurrentPosition(MPC.MSGIN msg) {
            if (TimerGetPositionEnabled) {
                double PositionValue = 0;
                if (Double.TryParse(msg.Message, NumberStyles.AllowDecimalPoint, System.Globalization.CultureInfo.InvariantCulture, out PositionValue)) {
                    position = PositionValue;
                    if (PositionChanged != null)
                        PositionChanged(this, new EventArgs());
                }
            }
        }