public static bool SolicitaSenha(bool fromMain) { using (FormSenha f = new FormSenha(fromMain)) { return f.ShowDialog() == DialogResult.OK; } }