public static void Main() { try { if (LoginForm.CheckLogIn()) { frmCustomers.ShowCustomers(); } else { Display.ShowError("Login failed"); Application.Exit(); } } catch (Exception) { throw; } }