예제 #1
0
        private void Dashboard_Load(object sender, EventArgs e)
        {
            var frmLogin = new Login();

            // frmLogin.MdiParent = this;
            frmLogin.ShowDialog();



            var cs = new Cadastrar();



            if (Login.perfilUsuario == 3)
            {
                opcAutoresToolStripMenuItem.Visible    = true;
                opcRevvisoresToolStripMenuItem.Visible = true;
                opsADMToolStripMenuItem.Visible        = true;
            }
            else if (Login.perfilUsuario == 1)
            {
                opcAutoresToolStripMenuItem.Visible = true;
            }
            else if (Login.perfilUsuario == 2)
            {
                opcAutoresToolStripMenuItem.Visible    = true;
                opcRevvisoresToolStripMenuItem.Visible = true;
            }
        }
예제 #2
0
        private void cadastrarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var cadastrar = new Cadastrar();

            cadastrar.MdiParent = this;
            cadastrar.Show();
            this.cadastrarToolStripMenuItem.Text = "Cadastrar";
        }