Exemplo n.º 1
0
        private void ShowEditForm(object sender, EventArgs e)
        {
            var bookEdit = new BookEditForm(_book.BookId.ToString());

            bookEdit.ShowDialog();
            Close();
        }
Exemplo n.º 2
0
 private void ShowBookEditForm(object sender, EventArgs e)
 {
     if (booksListBox.SelectedIndex == -1)
     {
         MessageBox.Show("Odaberi knjigu!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
     else
     {
         var bookEdit = new BookEditForm(booksListBox.SelectedValue.ToString());
         bookEdit.ShowDialog();
         FillBooksListBox();
     }
 }