Ejemplo n.º 1
0
        private void BookList_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (BookList.SelectedItems.Count == 1)
            {
                ListView.SelectedListViewItemCollection items  = BookList.SelectedItems;
                ListViewItem.ListViewSubItemCollection  lvItem = items[0].SubItems;

                string id = lvItem[0].Text;

                var itemBook = this.BookListArray.Find(item => item[0] == id);

                BookAddForm frm = new BookAddForm(itemBook);
                frm.Show();
            }
        }
Ejemplo n.º 2
0
        private void ButtonBookAdd_Click(object sender, EventArgs e)
        {
            BookAddForm frm = new BookAddForm();

            frm.Show();
        }