private void btnAddNew_Click(object sender, EventArgs e)
        {
            Book book = new Book();

            book.BookModelID = book_model_id;
            book.BookStatus  = 1;
            int i = EntityBroker.createNewBook(book);

            if (i == 0)
            {
                return;
            }
            //refreshing book list
            //MessageBox.Show(book_model_id.ToString());
            ucDetailsBook ucdb = new ucDetailsBook(book_model_id);

            ucdb.setMainWindowRefrence(MainWindowObject);
            ucdb.setParentWindowRefrence(ParentWindowObject);
            ParentWindowObject.RequestContentChange(ucdb);

            //refreshing min window list
            ucListBooks booklist = new ucListBooks();

            booklist.setMainWindowRefrence(MainWindowObject);
            MainWindowObject.RequestContentChange(booklist);
        }
        private void bookToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ucDetailsBook bookmodel = new ucDetailsBook();

            bookmodel.setMainWindowRefrence(this);
            Window_Popup_Details pd = new Window_Popup_Details(bookmodel);

            bookmodel.setParentWindowRefrence(pd);
            pd.ShowDialog();
        }
        private void dgvBooksList_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            DataGridView dgv = sender as DataGridView;

            if (dgv == null)
            {
                return;
            }
            if (dgv.CurrentRow.Selected)
            {
                int book_model_id = Convert.ToInt32(dgv.SelectedRows[0].Cells["Book Model ID"].Value);

                ucDetailsBook        ucdb = new ucDetailsBook(book_model_id);
                Window_Popup_Details pd   = new Window_Popup_Details(ucdb);
                ucdb.setWinObject(pd);
                ucdb.setMainWindowRefrence(MainWindowObject);
                ucdb.setParentWindowRefrence(pd);
                pd.ShowDialog();
            }
        }