예제 #1
0
        private void acceptButton_Click(object sender, EventArgs e)
        {
            RequestManager aRequestManager = new RequestManager();

            if (requestedBookIDTextBox.Text != "" && requestedReaderTextBox.Text != "")
            {
                MessageBox.Show(aRequestManager.AcceptThisRequest(requestedReaderTextBox.Text) + "\n\n" + aRequestManager.UpdateBookQuantity(requestedBookIDTextBox.Text) + "\n\n" + aRequestManager.UpdateBookReader(requestedReaderTextBox.Text, DateTime.Today));
                LoadBookListGridView();
                requestedReaderTextBox.Clear();
                requestedBookIDTextBox.Clear();
                LoadRequestGridView();
                LoadReaderListGridView();
            }
            else
            {
                MessageBox.Show("Fill up the required field");
            }
        }