private void addBookToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            AddBookForm form = new AddBookForm(Constants.LibraryMode.WISHLIST, Constants.AddBookMode.ADD);

            form.MdiParent = this;
            form.Show();
        }
 private void addBookToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     AddBookForm form = new AddBookForm(Constants.LibraryMode.WISHLIST, Constants.AddBookMode.ADD);
     form.MdiParent = this;
     form.Show();
 }
 private void addBookToolStripMenuItem_Click(object sender, EventArgs e)
 {
     AddBookForm form = new AddBookForm(_mode,Constants.AddBookMode.ADD);
     form.MdiParent = this.ParentForm.MdiParent;
     form.Show();
 }
 void EditBookToolStripMenuItemClick(object sender, EventArgs e)
 {
 	foreach(string id in this.SelectedIds)
 	{
 		AddBookForm form = new AddBookForm(_mode, Constants.AddBookMode.EDIT, id);
 		form.MdiParent = this.ParentForm.MdiParent;
 		form.Show();
 	}
 }
        /// <summary>
        /// Called when right click ->view details is called
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void viewDetailsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            MainForm parent = (MainForm)this.ParentForm.MdiParent;
            BookDAO dao = new BookDAO(parent.CurrentDatabase.FullName);

            foreach (string id in this.SelectedIds)
            {
                AddBookForm form = new AddBookForm(_mode, Constants.AddBookMode.VIEWONLY);
                form.BookData = dao.GetBookById(id);
                form.MdiParent = parent;
                form.Show();
            }

        }