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

            authorEdit.ShowDialog();
            Close();
        }
示例#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();
     }
 }