Beispiel #1
0
        /*
         * Opens form adding new book
         */
        public void AddBook()
        {
            frmBookUpdate FrmBookUpdate = new frmBookUpdate();

            FrmBookUpdate.MdiParent = this.MdiParent;
            FrmBookUpdate.Show();
        }
Beispiel #2
0
        /*
         * Opens form for editing books
         */
        public void UpdateBook(int bookId)
        {
            frmBookUpdate FrmBookUpdate = new frmBookUpdate(bookId);

            FrmBookUpdate.MdiParent = this.MdiParent;
            FrmBookUpdate.Show();
        }
Beispiel #3
0
 /*
  * Open BookUpdate form as child
  */
 private void addBook()
 {
     if (!focusForm("frmBookUpdate"))
     {
         frmBookUpdate FrmBookUpdate = new frmBookUpdate();
         FrmBookUpdate.MdiParent     = this;
         FrmBookUpdate.StartPosition = FormStartPosition.CenterParent;
         FrmBookUpdate.Show();
     }
 }
Beispiel #4
0
 /*
  * Open BookUpdate form as child
  */
 private void addBook()
 {
     if (!focusForm("frmBookUpdate"))
     {
         frmBookUpdate FrmBookUpdate = new frmBookUpdate();
         FrmBookUpdate.MdiParent = this;
         FrmBookUpdate.StartPosition = FormStartPosition.CenterParent;
         FrmBookUpdate.Show();
     }
 }
Beispiel #5
0
 /*
  * Opens form for editing books
  */
 public void UpdateBook(int bookId)
 {
     frmBookUpdate FrmBookUpdate = new frmBookUpdate(bookId);
     FrmBookUpdate.MdiParent = this.MdiParent;
     FrmBookUpdate.Show();
 }
Beispiel #6
0
 /*
  * Opens form adding new book
  */
 public void AddBook()
 {
     frmBookUpdate FrmBookUpdate = new frmBookUpdate();
     FrmBookUpdate.MdiParent = this.MdiParent;
     FrmBookUpdate.Show();
 }