private void ApplicationOnUpdateEvent()
{
if (updatePos == false && Style != ProgressBarStyle.Marquee)
{
return;
}
if (Style == ProgressBarStyle.Marquee)
{
barWidth = marqueeWidth;
if (barX < Width)
{
barX = MathHelper.Step(barX, Width, marqueeSpeed / 2f);
}
else
{
barX = -marqueeWidth;
}
return;
}
barX = 0;
barWidth = (value / (float)maximum) * Width;
updatePos = false;
}