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());
}
}
}