예제 #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (Convert.ToInt32(lblID.Text) <= 0)
     {
         MessageBox.Show("Please Choose One Account");
         return;
     }
     if (libraryApp.RemoveAccount(Convert.ToInt32(lblID.Text)))
     {
         MessageBox.Show("Delete Success");
         lblID.Text = "0";
     }
     else
     {
         MessageBox.Show("Error occurred\n Please relogin if the error continues!");
     }
 }