Ejemplo n.º 1
0
        public void trouverRole()
        {
            string role;

            role = ControlerTest.findRole(1);
            Assert.AreEqual("Administrateur", role);
        }
Ejemplo n.º 2
0
        private void PanelView_Load(object sender, EventArgs e)
        {
            MessageBox.Show("L'id employe est " + this.id_employe + " L'id societe est " + this.id_societe);
            this.MaximumSize = new Size(815, 665);
            this.MaximizeBox = false;
            this.ControlBox  = false;
            this.Text        = "Pannel de " + controler.findFirstName(this.id_employe);
            int droit = controler.defineRole(controler.findRole(this.id_employe));

            if (droit == 1)
            {
                infoSoc.Visible = true;
            }
            else
            {
                infoSoc.Visible = false;
            }
        }