Ejemplo n.º 1
0
        private void initializeWishListDetails(int wishID)
        {
            DataTable ds = new DataTable();

            ds = wishRep.GetWishListID(wishID);
            CommonUIMethods.ClearControl(this);
            txtMembers.Text  = ds.Rows[0]["MemberID"].ToString();
            txtBookId.Text   = ds.Rows[0]["BookID"].ToString();
            txtBookName.Text = ds.Rows[0]["BookName"].ToString();
            if (ds.Rows[0]["AuthorName"].ToString() == "--Select--")
            {
                lstAuthor.SelectedIndex = 0;
            }
            else
            {
                lstAuthor.Text = ds.Rows[0]["AuthorName"].ToString();
            }
            chkBookGiven.Checked = bool.Parse(ds.Rows[0]["Status"].ToString());
            lblWishID.Text       = wishID.ToString();
            if (String.IsNullOrEmpty(ds.Rows[0]["GrantDate"].ToString()))
            {
                dateGrantBook.Text    = DateTime.Now.ToShortDateString();
                dateGrantBook.Checked = false;
            }
            else
            {
                dateGrantBook.Checked = true;
                dateGrantBook.Text    = ds.Rows[0]["GrantDate"].ToString();
            }
        }
Ejemplo n.º 2
0
 private void btnClear_Click(object sender, EventArgs e)
 {
     CommonUIMethods.ClearControl(this);
 }