Пример #1
0
        private void insert_Click(object sender, EventArgs e)
        {
            CheckOutInsertUpdateForm checkOutInsertUpdate = new CheckOutInsertUpdateForm(this);

            checkOutInsertUpdate.changeEnableUpdate(false);
            checkOutInsertUpdate.ShowDialog();
        }
Пример #2
0
        private void update_Click(object sender, EventArgs e)
        {
            CheckOutInsertUpdateForm checkOutInsertUpdate = new CheckOutInsertUpdateForm(this);

            checkOutInsertUpdate.changeEnableInsert(false);
            if (checkOutTable.CurrentRow != null)
            {
                String isbn              = checkOutTable.CurrentRow.Cells[2].Value.ToString();
                String grade             = checkOutTable.CurrentRow.Cells[3].Value.ToString();
                String checker           = checkOutTable.CurrentRow.Cells[4].Value.ToString();
                String currentCondition  = checkOutTable.CurrentRow.Cells[6].Value.ToString();
                String checkedInDate     = checkOutTable.CurrentRow.Cells[5].Value.ToString();
                String libraryCardNumber = checkOutTable.CurrentRow.Cells[1].Value.ToString();
                checkOutInsertUpdate.changeEnableGradeIsbnLibraryCardNumberTextBox(false);
                checkOutInsertUpdate.setData(libraryCardNumber, isbn, grade, checker, checkedInDate, currentCondition);
            }
            checkOutInsertUpdate.ShowDialog();
        }