Example #1
0
        /// <summary>
        /// Добавить книгу
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void toolStripButton4_Click(object sender, EventArgs e)
        {
            AddBook addBook = new AddBook();

            addBook.MdiParent = this.MdiParent;
            addBook.Show();
        }
Example #2
0
 void addBook_FormClosed(object sender, EventArgs e)
 {
     add = null;
     Book.Save();
     Giving.Save();
     Student.Save();
 }
Example #3
0
        private void BtnAddForm_Click(object sender, EventArgs e)
        {
            this.Hide();
            AddBook addBook = new AddBook();

            addBook.Show();
        }
        private void 添加书籍_Click(object sender, EventArgs e)
        {
            AddBook subForm = new AddBook();

            subForm.Owner = this;
            subForm.Show();
        }
Example #5
0
 private void добавитьНовуюToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (add == null)
     {
         AddBook addBook = new AddBook();
         addBook.MdiParent   = this;
         addBook.FormClosed += new FormClosedEventHandler(addBook_FormClosed);
         addBook.Show();
     }
 }
Example #6
0
 private void btn_Add_Click(object sender, EventArgs e)
 {
     if (Properties.Settings.Default.Status)
     {
         AddBook bookForm = new AddBook(this, lbCode);
         bookForm.ShowDialog();
     }
     else
     {
         LoginForm loginForm = new LoginForm();
         loginForm.ShowDialog();
     }
     showAllData();
 }
Example #7
0
        private void AddBookClick(object sender, RoutedEventArgs e)
        {
            AddBook addBook = new AddBook();

            addBook.ShowDialog();
        }
Example #8
0
        private void btnAddBooks_Click(object sender, EventArgs e)
        {
            AddBook ab = new AddBook();

            ab.ShowDialog();
        }