private void SaveVinabiz(string fromparent) { SQLDatabase.ExcNonQuery(string.Format("delete from dm_DialogColumn where IDLoad='{0}'", fromparent)); if (checkedListBox1.CheckedItems.Count > 0) { foreach (var item in checkedListBox1.CheckedItems) { var company = (ListItemBox)item; SQLDatabase.Adddm_DialogColumn(new dm_DialogColumn() { Keys = company.Name, name = company.Path, IDLoad = fromparent }); } MessageBox.Show("Đã lưu thành công", "Thông Báo"); } }