Пример #1
0
        private void btnAvVillage_Click(object sender, EventArgs e)
        {
            this.splitContainer1.Panel2.Controls.Clear();

            if (Factory.ValUser == 0)//Utilisateur Provincial
            {
                AvenueVillageForm avrecens = new AvenueVillageForm();
                avrecens.Parent = this.splitContainer1.Panel2;
                this.splitContainer1.Panel2.Controls.Add(avrecens);
            }
            else if (Factory.ValUser == 1 || Factory.ValUser == 2)//Utilisateur Serveur Central sur Serveur Provincial
            {
                AvenueVillageFormServeur avrecens = new AvenueVillageFormServeur();
                avrecens.Parent = this.splitContainer1.Panel2;
                this.splitContainer1.Panel2.Controls.Add(avrecens);
            }
        }
Пример #2
0
        private void lblRecensseurAvVillage_Click(object sender, EventArgs e)
        {
            this.splitContainer1.Panel2.Controls.Clear();

            if (Factory.ValUser == 0)//Utilisateur Provincial
            {
                AvenueVillageForm avrecens = new AvenueVillageForm();
                avrecens.Parent = this.splitContainer1.Panel2;
                this.splitContainer1.Panel2.Controls.Add(avrecens);
            }
            else if (Factory.ValUser == 1 || Factory.ValUser == 2)//Utilisateur Serveur Central sur Serveur Provincial
            {
                AvenueVillageFormServeur avrecens = new AvenueVillageFormServeur();
                avrecens.Parent = this.splitContainer1.Panel2;
                this.splitContainer1.Panel2.Controls.Add(avrecens);
            }
            unitialiseLabels();
            ((Control)lblAvVillage).BackColor = Color.Silver;
            ((Control)lblAvVillage).ForeColor = Color.WhiteSmoke;
        }