private void OnApplicationExit(object sender, EventArgs e) { if (notifyIcon != null) { notifyIcon.Visible = false; } ipcManager?.Dispose(); }
private void OnApplicationExit(object sender, EventArgs e) { foreach (Form form in Application.OpenForms) { form.Close(); } if (notifyIcon != null) { notifyIcon.Visible = false; } ipcManager?.Dispose(); }