Exemplo n.º 1
0
 private void ButtonCreate_Click(object sender, EventArgs e)
 {
     using (BookInfoControlForm bookForm = new BookInfoControlForm(NViewHelper.FormViewMode.Create,
                                                                   WorkspaceStockman))
     {
         Hide();
         bookForm.ShowDialog();
         Show();
     }
 }
Exemplo n.º 2
0
        private void ButtonSearch_Click(object sender, EventArgs e)
        {
            BookInformation book = WorkspaceStockman.BookFinding.FindByTitle(textBoxSearch.Text);

            if (book != null)
            {
                using (BookInfoControlForm bookForm = new BookInfoControlForm(NViewHelper.FormViewMode.Edit,
                                                                              WorkspaceStockman, book))
                {
                    Hide();
                    bookForm.ShowDialog();
                    Show();
                }
            }
        }