Exemplo n.º 1
0
        private void giơiThiệuToolStripMenuItem_Click(object sender, EventArgs e)
        {
            pnlMain.Controls.Clear();
            frmIntro intro = new frmIntro(username, password, isAdmin);

            intro.TopLevel = false;
            pnlMain.Controls.Add(intro);
            intro.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            pnlMain.Dock          = DockStyle.Fill;
            intro.Show();
        }
Exemplo n.º 2
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            pnlMain.Controls.Clear();
            frmIntro intro = new frmIntro(username, password, isAdmin);

            intro.TopLevel = false;
            pnlMain.Controls.Add(intro);
            intro.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            pnlMain.Dock          = DockStyle.Fill;
            intro.Show();
            menuStrip1.Items[0].Visible = false;

            if (isAdmin)
            {
                menuStrip1.Items[0].Visible = true;
            }
        }