Exemplo n.º 1
0
        void SearchAndShow(string s)
        {
            // Show Four Search Output Screen
            StudentEntryScreen StudentDetails = new StudentEntryScreen(s);
            BookPerIdScreen    bp             = new BookPerIdScreen(s);
            InstallmentPerId   ip             = new InstallmentPerId(s);
            MiniBusInfo        busInfo        = new MiniBusInfo(s);

            resultPan.Children.Clear();
            resultPan.Children.Add(StudentDetails);
            resultPan.Children.Add(bp);
            resultPan.Children.Add(ip);
            resultPan.Children.Add(busInfo);
        }
Exemplo n.º 2
0
        void Search()
        {
            listPane.Children.Clear();
            Library foundBook = Library.FindLastEntry(txtSID.Text);

            if (foundBook != null)
            {
                txtBookName.Text = foundBook.bname;
                txtIdate.Text    = foundBook.iDate.ToString("dd/MM/yyyy");
                txtrdate.Text    = foundBook.rDate.ToString("dd/MM/yyyy");
                txtFine.Text     = foundBook.fine.ToString();
                txtRp.Text       = foundBook.rp;
                txtLBC.Text      = foundBook.sid + "L";
                listPane.Children.Clear();
                BookPerIdScreen bp = new BookPerIdScreen(txtSID.Text);
                listPane.Children.Add(bp);
            }
            else
            {
                txtFine.Text = "0"; txtRp.Text = "HOLD"; txtIdate.Clear();
                txtrdate.Clear(); txtLBC.Clear(); txtBookName.Clear();
                txtSID.Clear();
            }
        }