private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e) { if (MessageBox.Show("Bạn có chắc chắn xóa không?", "Hoa Don", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { bindingNavigator1.BindingSource.RemoveCurrent(); ctrl.Save(); } }
void CapNhat() { ctrl.Save(); ctrl.Update(); }