public bool CreateLoginForm() { using (var loginForm = new LoginForm()) { var result = loginForm.ShowDialog(); if (result == DialogResult.OK) { return true; } else { return false; } } }
public bool CreaLoginForm() { using (var loginForm = new LoginForm()) { var result = loginForm.ShowDialog(); if (result == DialogResult.OK) { return true; } else { Environment.Exit(1); } return false; } }