コード例 #1
0
        public bool SendReq(string username, string bookname)
        {
            bool       isf = false;
            IssueBooks i   = new IssueBooks();

            i.UserName1 = username;
            i.BookName1 = bookname;
            foreach (User u in Userdl.user)
            {
                if (u.Username == username)
                {
                    foreach (Book b in Bookdl.Library)
                    {
                        if (b.Name == bookname)
                        {
                            isf = true;

                            IssueBooksdl.SendReq(i);
                        }
                    }
                }
            }
            return(isf);
        }
コード例 #2
0
 public List <IssueBooks> ShowAllReq()
 {
     return(IssueBooksdl.ShowAllReq());
 }