Exemple #1
0
 private void buttonExcluir_Click(object sender, EventArgs e)
 {
     if (textBoxNumero.Text == string.Empty)
     {
         MessageBox.Show("Informe o numero do emprestimo que deseja excluir");
     }
     else
     {
         if (MessageBox.Show("Deseja realmente Excluir?", "Cuidado", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.No)
         {
             MessageBox.Show("Operação Cancelada!");
         }
         else
         {
             Recebimento recebimento = new Recebimento();
             recebimento.ExcluirRecebimento(Convert.ToInt32(textBoxNumero.Text));
             emprestimo.Excluir(Convert.ToInt32(textBoxNumero.Text));
             textBoxListaEmprestimos.Text = "";
             pegaDadosBanco();
         }
     }
 }
        private void buttonRecebeParcela_Click(object sender, EventArgs e)
        {
            Recebimento recebimento = new Recebimento();

            recebimento.CadastraRecebimento(this.id, Convert.ToString(comboBoxMes.Text));
        }