private void btnSave_Click(object sender, EventArgs e)
 {
     try
     {
         if (!txtSearch.Text.Equals(""))
         {
             b = context.GetLoanBookInfo(Convert.ToInt32(txtSearch.Text)).FirstOrDefault();
             if (b != null)
             {
                 lblISBN.Text = b.ISBN;
                 lblTitle.Text = b.Title;
                 lblCategory.Text = b.CategoryDescription;
                 lblDueDate.Text = b.DueDate.ToShortDateString();
                 lblStatus.Text = b.Status;
                 lblMemberID.Text = b.MemberID.ToString();
                 lblName.Text = b.FirstName + " " + b.LastName;
             }
             else { resetForm(); }
         }
         else { resetForm(); }
     }
     catch (Exception ex)
     {
         txtSearch.Text = "";
     }
 }
 /// <summary>
 /// Create a new GetLoanBookInfo_Result object.
 /// </summary>
 /// <param name="bookCopyID">Initial value of the BookCopyID property.</param>
 /// <param name="title">Initial value of the Title property.</param>
 /// <param name="categoryDescription">Initial value of the CategoryDescription property.</param>
 /// <param name="dueDate">Initial value of the DueDate property.</param>
 /// <param name="status">Initial value of the Status property.</param>
 /// <param name="memberID">Initial value of the MemberID property.</param>
 /// <param name="firstName">Initial value of the FirstName property.</param>
 /// <param name="lastName">Initial value of the LastName property.</param>
 /// <param name="issueID">Initial value of the IssueID property.</param>
 public static GetLoanBookInfo_Result CreateGetLoanBookInfo_Result(global::System.Int32 bookCopyID, global::System.String title, global::System.String categoryDescription, global::System.DateTime dueDate, global::System.String status, global::System.Int32 memberID, global::System.String firstName, global::System.String lastName, global::System.Int32 issueID)
 {
     GetLoanBookInfo_Result getLoanBookInfo_Result = new GetLoanBookInfo_Result();
     getLoanBookInfo_Result.BookCopyID = bookCopyID;
     getLoanBookInfo_Result.Title = title;
     getLoanBookInfo_Result.CategoryDescription = categoryDescription;
     getLoanBookInfo_Result.DueDate = dueDate;
     getLoanBookInfo_Result.Status = status;
     getLoanBookInfo_Result.MemberID = memberID;
     getLoanBookInfo_Result.FirstName = firstName;
     getLoanBookInfo_Result.LastName = lastName;
     getLoanBookInfo_Result.IssueID = issueID;
     return getLoanBookInfo_Result;
 }