in 2LCS/Forms/MainForm.cs [1564:1595]
private void NotifyIcon_MouseClick(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
if (WindowState == FormWindowState.Normal || WindowState == FormWindowState.Maximized)
{
if (IsOverlapped(this))
{
Activate();
}
else
{
_previousState = WindowState;
WindowState = FormWindowState.Minimized;
if (Properties.Settings.Default.minimizeToNotificationArea == true)
{
this.ShowInTaskbar = false;
}
}
}
else if (WindowState == FormWindowState.Minimized)
{
WindowState = _previousState;
if (Properties.Settings.Default.minimizeToNotificationArea == true)
{
this.ShowInTaskbar = true;
}
}
}
}