Beispiel #1
0
        private void ShowAuthorEditForm(object sender, EventArgs e)
        {
            var authorEdit = new AuthorEditForm(_author.AuthorId.ToString());

            authorEdit.ShowDialog();
            Close();
        }
Beispiel #2
0
 private void ShowAuthorEditForm(object sender, EventArgs e)
 {
     if (authorsListBox.SelectedIndex == -1)
     {
         MessageBox.Show("Odaberi autora!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
     else
     {
         var authorEdit = new AuthorEditForm(authorsListBox.SelectedItem.ToString().OnlyNumbers());
         authorEdit.ShowDialog();
         FillAuthorsListBox();
     }
 }