private void SetProgressBarMarquee_FormThread(bool marquee)
{
this.Progress.Style = marquee ? ProgressBarStyle.Marquee : ProgressBarStyle.Blocks;
if (OsUtils.WinSevenOrLater() && this.IsHandleCreated)
{
if (marquee)
{
this.tbarNotif.SetProgressMarquee(this);
}
else
{
this.tbarNotif.SetProgressNone(this);
}
}
}