Exemplo n.º 1
0
        private void RB_Click(object sender, EventArgs e)
        {
            DateTime CurrDate = new DateTime();
            DateTime DueDate  = new DateTime();

            CurrDate = DateTime.Now;
            DueDate  = CurrDate.AddDays(2);
            string  CD = CurrDate.ToString("M/d/yyyy");
            string  DD = DueDate.ToString("M/d/yyyy");
            Request RR = new Request(p.UserName, B.ISBN, DD, CD, "Pending");

            p.RequestBook(RR);
            RB.Visible      = false;
            Pending.Visible = true;
            Info.Visible    = true;
            CR.Visible      = true;
            Info.Text       = "Request Has Been Sent , Waiting For The Librarian Approval";
        }