private void btnDeleteAuthor_Click(object sender, EventArgs e) { var query = $"DELETE LibraryTypeAuthor WHERE LibraryTypeAuthorID = {txtAuthorID.Text}"; HandlingDataHelper.DeleteData(dgvAuthor, DataGridViewHeader.listOfColumnsAuthor, txtAuthorID.Text, "Author ID", query, "LibraryTypeAuthor"); }
private void btnDeleteCopyright_Click(object sender, EventArgs e) { var query = $"DELETE LibraryTypeCopyright WHERE LibraryTypeCopyrightID = {txtCopyrightID.Text}"; HandlingDataHelper.DeleteData(dgvCopyright, DataGridViewHeader.listOfColumnsCopyright, txtCopyrightID.Text, "Copyright ID", query, "LibraryTypeCopyright"); }
private void btnDeleteFormat_Click(object sender, EventArgs e) { var query = $"DELETE LibraryTypeFormat WHERE LibraryTypeFormatID = {txtFormatID.Text}"; HandlingDataHelper.DeleteData(dgvFormat, DataGridViewHeader.listOfColumnsFormat, txtFormatID.Text, "Format ID", query, "LibraryTypeFormat"); }
private void btnDeleteCategory_Click(object sender, EventArgs e) { var query = $"DELETE LibraryTypeCategory WHERE LibraryTypeCategoryID = {txtCategoryID.Text}"; HandlingDataHelper.DeleteData(dgvCategory, DataGridViewHeader.listOfColumnsCategory, txtCategoryID.Text, "Language ID", query, "LibraryTypeCategory"); }
private void btnDeleteEdition_Click(object sender, EventArgs e) { var query = $"DELETE LibraryTypeEdition WHERE LibraryTypeEditionID = {txtEditionID.Text}"; HandlingDataHelper.DeleteData(dgvEdition, DataGridViewHeader.listOfColumnsEdition, txtEditionID.Text, "Edition ID", query, "LibraryTypeEdition"); }