Exemplo n.º 1
0
        public void trouverPrenom()
        {
            string name;

            name = ControlerTest.findFirstName(1);
            Assert.AreEqual("Gregory", name);
        }
Exemplo 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;
            }
        }