示例#1
0
        private void editBookToolStripMenuItemMainManu_Click(object sender, EventArgs e)
        {
            EditBookForm newForm = new EditBookForm();

            newForm.StartPosition = FormStartPosition.CenterScreen;
            newForm.ShowDialog();
        }
        private void EditButton_Click(object sender, EventArgs e)
        {
            if (BooksListBox.CheckedItems.Count == 0)
            {
                return;
            }

            var selected = BooksListBox.SelectedItem.ToString();

            var editSelectedBook = new EditBookForm(selected);

            editSelectedBook.ShowDialog();
            RefreshBooksListBox();
        }