private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e) { if (MessageBox.Show("Tem certeza que deseja excluir o pagamento " + cod_caixaTextBox.Text, "Atenção", MessageBoxButtons.OKCancel) == System.Windows.Forms.DialogResult.OK) { this.caixaBindingSource.EndEdit(); this.tableAdapterManager.UpdateAll(this.bremingtonBackEndDataSet); MessageBox.Show("Pagamento excluido com sucesso!", "Pronto ...", MessageBoxButtons.OK); } else { caixaBindingSource.CancelEdit(); this.caixaTableAdapter.Fill(this.bremingtonBackEndDataSet.caixa); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)