private void ShowUpdateButton() { BookList SelectedBook = (BookList)BookListBox.SelectedItem; UpdateForm = new RegistForm(SelectedBook); UpdateForm.HideRegistButton(); UpdateForm.ShowDialog(); ModifyBookList(); }
private void ShowNewRegistForm() { NewRegistForm = new RegistForm(); NewRegistForm.HideUpdateButton(); NewRegistForm.ShowDialog(); ModifyBookList(); }