internal void ToggleNotifyIcon(bool on)
{
if (InvokeRequired)
{
Invoke(new ToggleHandler(ToggleNotifyIcon), on);
return;
}
if (on)
{
this.Icon = mNotifyIcon.Icon = DCT.Properties.Resources.Running;
}
else
{
this.Icon = mNotifyIcon.Icon = DCT.Properties.Resources.Default;
}
}