Exemple #1
0
        private void btnSousEntite_Click(object sender, EventArgs e)
        {
            this.splitContainer1.Panel2.Controls.Clear();

            if (Factory.ValUser == 0)//Utilisateur Provincial
            {
                ComCheffQuartierLoc comcs = new ComCheffQuartierLoc();
                comcs.Parent = this.splitContainer1.Panel2;
                this.splitContainer1.Panel2.Controls.Add(comcs);
            }
            else if (Factory.ValUser == 1 || Factory.ValUser == 2)//Utilisateur Serveur Central sur Serveur Provincial
            {
                ComCheffQuartierLocServeur comcs1 = new ComCheffQuartierLocServeur();
                comcs1.Parent = this.splitContainer1.Panel2;
                this.splitContainer1.Panel2.Controls.Add(comcs1);
            }
        }
Exemple #2
0
        private void lblCommuneCheffQuaLoc_Click(object sender, EventArgs e)
        {
            this.splitContainer1.Panel2.Controls.Clear();

            if (Factory.ValUser == 0)//Utilisateur Provincial
            {
                ComCheffQuartierLoc comcs = new ComCheffQuartierLoc();
                comcs.Parent = this.splitContainer1.Panel2;
                this.splitContainer1.Panel2.Controls.Add(comcs);
            }
            else if (Factory.ValUser == 1 || Factory.ValUser == 2)//Utilisateur Serveur Central sur Serveur Provincial
            {
                ComCheffQuartierLocServeur comcs1 = new ComCheffQuartierLocServeur();
                comcs1.Parent = this.splitContainer1.Panel2;
                this.splitContainer1.Panel2.Controls.Add(comcs1);
            }
            unitialiseLabels();
            ((Control)lblCommuneCheffQuaLoc).BackColor = Color.Silver;
            ((Control)lblCommuneCheffQuaLoc).ForeColor = Color.WhiteSmoke;
        }