// Função que realizar o Login
 private void buttonLogin_Click(object sender, EventArgs e)
 {
     if (textBoxLUser.Text == "" || textBoxLPassword.Text == "")
     {
         MessageBox.Show("Preencha os campos obrigatórios!");
     }
     else
     {
         int loginValue = CountRegistros($"SELECT COUNT(*) FROM `Usuario` WHERE `Nome` LIKE '{textBoxLUser.Text}' AND `Senha` LIKE '{textBoxLPassword.Text}'", connection);
         if (loginValue == 0)
         {
             MessageBox.Show("Usuário ou senha errado!");
         }
         else
         {
             MenuSystem menuSystem = new MenuSystem();
             if (MessageBox.Show("Login efetuado com sucesso!") == DialogResult.OK)
             {
                 menuSystem.UserLogin(textBoxLUser.Text);
                 menuSystem.Acesso();
                 menuSystem.Show();
                 this.Hide();
             }
         }
     }
 }