Beispiel #1
0
 private void btnDelete_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Do you want to Delete Creent Record ", "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.Yes)
     {
         try
         {
             string respond = MyAccount.DeleteAccountCreation(txtAccID.Text);
             if (respond == "True")
             {
                 MessageBox.Show("Account Deleted Successfully", "Confirmation", MessageBoxButtons.OK, MessageBoxIcon.Information);
                 InitializeScreen();
                 LoadExistingAccount();
                 LoadExtAccountInHiaraky();
             }
         }
         catch (Exception ex)
         {
             MessageBox.Show(ex.Message, "E r r o r", MessageBoxButtons.OK, MessageBoxIcon.Stop);
         }
     }
 }