private void AemManager_FormClosed(object sender, FormClosedEventArgs e) { if (Program.NotifyIcon != null) { Program.NotifyIcon.Visible = false; } }