Пример #1
0
 public override void Recharger()
 {
     servConSys.Connector  = this.Connector;
     servEvents.Connector  = this.Connector;
     servStructs.Connector = this.Connector;
     servCondi.Connector   = this.Connector;
     //remplir les systemes
     systemes_liste.DataSource    = servConSys.GetAll();
     systemes_liste.DisplayMember = "Libelle";
     systemes_liste.ValueMember   = "Code";
 }
 public override void Recharger()
 {
     servEvents.Connector  = this.Connector;
     servConSys.Connector  = this.Connector;
     servStructs.Connector = this.Connector;
     //Remplir les system
     sysAmont_liste.DataSource    = servConSys.GetAll();
     sysAmont_liste.DisplayMember = "Libelle";
     sysAmont_liste.ValueMember   = "Code";
     //Attacher les evenement
     sysAmont_liste.SelectedIndexChanged   += sysAmont_liste_SelectedIndexChanged;
     evenements_liste.SelectedIndexChanged += evenements_liste_SelectedIndexChanged;
 }
        public override void Recharger()
        {
            servConnexionSystem.Connector = this.Connector;
            //Remplir la liste des libélles s'il y a des connections
            var liste = servConnexionSystem.GetAll();

            if (liste != null)
            {
                if (liste.Count > 0)
                {
                    libelle_liste.DataSource    = liste;
                    libelle_liste.DisplayMember = "Libelle";
                    libelle_liste.ValueMember   = "Code";
                    //Attacher l'event
                    libelle_liste.SelectedIndexChanged += libelle_liste_SelectedIndexChanged;
                    libelle_liste.SelectedIndex         = 0;
                    return;
                }
            }
            MessageBox.Show("Il Existe Aucune Connection Au Systéme Amont,Veillez les créer");
            return;
        }