Пример #1
0
 private void btnAddNewBook_Click(object sender, EventArgs e)
 {
     if (ob_FrmAddNewBook == null || ob_FrmAddNewBook.IsDisposed)
     {
         ob_FrmAddNewBook = new FrmAddNewBook();
         ob_FrmAddNewBook.Show();
     }
     else
     {
         ob_FrmAddNewBook.Activate();
     }
 }
Пример #2
0
 private void btnAddNewBook_Click(object sender, EventArgs e)
 {
     if (ob_FrmAddNewBook == null || ob_FrmAddNewBook.IsDisposed)
     {
         ob_FrmAddNewBook = new FrmAddNewBook();
         ob_FrmAddNewBook.Show();
     }
     else
     {
         ob_FrmAddNewBook.Activate();
     }
 }