private void ToggleSystray() { if (this.Visible) { mNotifyIcon.Visible = true; this.Hide(); } else { Show(); if (!Settings.NotifyVisible) mNotifyIcon.Visible = false; } }