private void ExitClicked() { _trayManager.HideTrayIcon(); _formManager.SaveState(); Application.Exit(); }