Exemple #1
0
        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");
        }
Exemple #2
0
        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");
        }
Exemple #3
0
        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");
        }
Exemple #4
0
        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");
        }
Exemple #5
0
        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");
        }