Exemplo n.º 1
0
        private void AddBook(object sender, EventArgs e)
        {
            AddChange form = new AddChange(bookListGrid, departParamText);

            form.AddForm();
            form.ShowDialog();
        }
Exemplo n.º 2
0
        private void EditBook(object sender, EventArgs e)
        {
            Book book = GetSelectedBook();

            if (book != null)
            {
                AddChange form = new AddChange(bookListGrid, departParamText);
                form.ChangeForm(book);
                form.ShowDialog();
            }
        }