Ejemplo n.º 1
0
        private void mViewStudentBtn_Click(object sender, EventArgs e)
        {
            ViewBook viewBook = new ViewBook(userId);

            this.Hide();
            viewBook.panel1.Visible = true;
            viewBook.Show();
        }
Ejemplo n.º 2
0
        private void mViewBookBtn_Click(object sender, EventArgs e)
        {
            ViewBook viewBook = new ViewBook(userId);

            this.Hide();
            viewBook.BringToFront();
            //panelControl.Controls.Remove(vb);
            viewBook.mAddStudentBtn.Visible     = false;
            viewBook.mViewStudentBtn.Visible    = false;
            viewBook.panel1.Visible             = false;
            viewBook.panel2.Visible             = true;
            viewBook.mUpdateDataBtn.Visible     = false;
            viewBook.mDeleteBtn.Visible         = false;
            viewBook.mClearBtn.Visible          = false;
            viewBook.mUpdateImageBtn.Visible    = false;
            viewBook.bookidTF.ReadOnly          = true;
            viewBook.booknameTF.ReadOnly        = true;
            viewBook.authornameTF.ReadOnly      = true;
            viewBook.quantityTF.ReadOnly        = true;
            viewBook.publicationyearTF.ReadOnly = true;
            viewBook.SetName();
            viewBook.Show();
        }