Ejemplo n.º 1
0
        private void Button1_Click(object sender, EventArgs e)
        {
            try
            {
                int donationId = int.Parse(textBox1.Text.ToString());


                Donations k = new Donations();



                int result = k.DeleteDonation(donationId);
                if (result > 0)
                {
                    label2.Text = "Donation deleted";
                }
                else
                {
                    label2.Text = "Donation Not deleted";
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }