Exemple #1
0
        private void MenuItem_Click_3(object sender, RoutedEventArgs e)
        {
            //GestionClient a = new GestionClient(idAdminCourant);
            //a.Show();
            GestionClient Child = new GestionClient(idAdminCourant);

            StkPanelContent.Children.Clear();
            object content = Child.Content;

            Child.Content = null;
            this.StkPanelContent.Children.Add(content as UIElement);
        }
Exemple #2
0
        private void privilege()
        {
            String service = profilC.GetService(idAdminCourant);

            if (service.Equals("Agent Commercial"))
            {
                mAgents.IsEnabled     = false;
                MProduits.IsEnabled   = false;
                MAteliers.IsEnabled   = false;
                consulter.IsEnabled   = false;
                Mproduction.IsEnabled = false;
                Mgroupes.IsEnabled    = false;
                histo.Visibility      = Visibility.Collapsed;

                GestionClient Child = new GestionClient(idAdminCourant);
                StkPanelContent.Children.Clear();
                object content = Child.Content;
                Child.Content = null;
                this.StkPanelContent.Children.Add(content as UIElement);
            }
            if (service.Equals("Agent de production"))
            {
                mAgents.IsEnabled      = false;
                MFournisseur.IsEnabled = false;
                MCLient.IsEnabled      = false;
                MVentes.IsEnabled      = false;
                MAchats.IsEnabled      = false;
                MDevis.IsEnabled       = false;
                MArticles.IsEnabled    = false;
                ajouter.IsEnabled      = false;
                histo.Visibility       = Visibility.Collapsed;



                GererBonProduction Child = new GererBonProduction(idAdminCourant);
                StkPanelContent.Children.Clear();
                object content = Child.Content;
                Child.Content = null;
                this.StkPanelContent.Children.Add(content as UIElement);
            }
            if (service.Equals("Administrateur"))
            {
                GererAgents Child = new GererAgents(idAdminCourant);
                StkPanelContent.Children.Clear();
                object content = Child.Content;
                Child.Content = null;
                this.StkPanelContent.Children.Add(content as UIElement);
            }
        }