private void LoadDataToGridView()
        {
            this.dgvBookTitleStatus.Rows.Clear();
            BookTitleStatusBLL        bookTitleStatusBLL = new BookTitleStatusBLL();
            List <BookTitleStatusBLL> bookTitleStatusArr = new List <BookTitleStatusBLL>();

            bookTitleStatusArr = BookTitleStatusDAL.getBookTitleStatusList();
            foreach (BookTitleStatusBLL row in bookTitleStatusArr)
            {
                this.dgvBookTitleStatus.Rows.Add(row.BookTitleStatusId, row.Name);
            }
            this.GetSelectedValue();
            this.dgvBookTitleStatus.CellClick += new DataGridViewCellEventHandler(this.dgvBookTitleStatus_CellClick);
        }
        public List <ComboboxItem> getComboboxItemBookTitleStatus()
        {
            List <BookTitleStatusBLL> bookTitleStatusList = new List <BookTitleStatusBLL>();

            bookTitleStatusList = BookTitleStatusDAL.getBookTitleStatusList();
            List <ComboboxItem> comboboxItemList = new List <ComboboxItem>();

            for (int i = 0; i < bookTitleStatusList.Count; i++)
            {
                ComboboxItem item = new ComboboxItem();
                item.Value = bookTitleStatusList[i].BookTitleStatusId;
                item.Text  = bookTitleStatusList[i].Name;
                comboboxItemList.Add(item);
            }
            return(comboboxItemList);
        }