コード例 #1
0
        private void EditAuthor()
        {
            selectedAuthor = dataGridViewAuthors.SelectedRows[0].Tag as Author;
            FormAddorEditNewAuthor newAuthor = new FormAddorEditNewAuthor(authors, selectedAuthor);

            newAuthor.ShowDialog();
            selectedAuthor = null;
        }
コード例 #2
0
        private void AddNewAuthor()
        {
            FormAddorEditNewAuthor newAuthor = new FormAddorEditNewAuthor(authors, selectedAuthor);

            newAuthor.ShowDialog();
        }