Пример #1
0
        private void BooksDataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                var bookId = int.Parse(booksDataGridView.SelectedRows[0].Cells[0].Value.ToString());

                var bookDetailsForm = new BookDetailsForm(bookId);
                bookDetailsForm.Show();
            }
            catch (System.Exception)
            {
            }
        }
Пример #2
0
        private void AddBookBtn_Click(object sender, System.EventArgs e)
        {
            var addBookForm = new BookDetailsForm();

            addBookForm.Show();
        }