private void editToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (toEditAuthor != null)
     {
         AddEditAuthorForm addEditAuthorForm = new AddEditAuthorForm(toEditAuthor);
         addEditAuthorForm.ShowDialog();
         RefreshViews();
     }
 }
 private void addNewAuthorToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (!authorsDataGridView.CurrentCell.OwningRow.IsNewRow)
     {
         var author = new Authors();
         AddEditAuthorForm addEditAuthorForm = new AddEditAuthorForm(author);
         addEditAuthorForm.ShowDialog();
         if (addEditAuthorForm.DialogResult == DialogResult.OK)
         {
             authors.Add(author);
         }
     }
 }