private void AddBook(object sender, EventArgs e) { AddChange form = new AddChange(bookListGrid, departParamText); form.AddForm(); form.ShowDialog(); }
private void EditBook(object sender, EventArgs e) { Book book = GetSelectedBook(); if (book != null) { AddChange form = new AddChange(bookListGrid, departParamText); form.ChangeForm(book); form.ShowDialog(); } }