Пример #1
0
        private void btnAbout_Click(object sender, EventArgs e)
        {
            pnlChoise.Visible  = true;
            pnlChoise.Location = new Point(63, 231);

            AboutPanel aboutPanel = new AboutPanel();

            ShowInPanelControlManage(aboutPanel);

            About.About about = new About.About();
            this.pnlView.Controls.Clear();
            about.TopLevel   = false;
            about.AutoScroll = true;
            this.pnlView.Controls.Add(about);
            about.Show();
        }
Пример #2
0
 public void CheckLogin()
 {
     if (LogIn.IsLogin)
     {
         pnlView.Controls.Clear();
         About.About about = new About.About();
         this.pnlView.Controls.Clear();
         about.TopLevel   = false;
         about.AutoScroll = true;
         this.pnlView.Controls.Add(about);
         about.Show();
         btnStudents.Visible = btnNoteBook.Visible = btnPOS.Visible = btnAbout.Visible = btnInit.Visible = btnLogout.Visible = true;
     }
     else
     {
         MessageBox.Show("Login Information Error", "Error");
     }
 }