DCT.UI.CoreUI.ToggleNotifyIcon C# (CSharp) Method

ToggleNotifyIcon() private method

private ToggleNotifyIcon ( bool on ) : void
on bool True if program is 'running'
return void
        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;
            }
        }
CoreUI