private void btnDelete_Click(object sender, EventArgs e) { string id = txtID.Text; DataProcess dt = new DataProcess(); if (dt.DeleteCategory(id) == true) { MessageBox.Show("Delete success!!"); LoadData(); } else { MessageBox.Show("Error"); } }
private void btnDelete_Click(object sender, EventArgs e) { string id = txtID.Text; DataProcess dt = new DataProcess(); if (dt.DeleteCategory(id) == true) { MessageBox.Show("Delete success!!"); LoadData(); } else { MessageBox.Show("Error"); } }