예제 #1
0
        private void evenets_liste_SelectedIndexChanged(object sender, EventArgs e)
        {
            var even = (Evenement)evenets_liste.SelectedItem;

            //remplissage des conditions
            conditions_liste.DataSource    = servCondi.GetByEvenement(even.Code);
            conditions_liste.DisplayMember = "Libelle";
            conditions_liste.ValueMember   = "Ref_Util";
            //remplissage des champs(structure) de l'evenement
            champs_tree.Nodes.Clear();
            outputs = servStructs.GetByEvenement(even.Code);
            foreach (var item in outputs)
            {
                var node = new TreeNode {
                    Text = item.Champs, Tag = item
                };
                champs_tree.Nodes.Add(node);
            }
            input_grid.Rows.Clear(); inputs.Clear();
        }
 private void events_liste_SelectedIndexChanged(object sender, EventArgs e)
 {//remplir les conditions de l'evenement
     conditions_liste.DataSource    = servCondis.GetByEvenement(Convert.ToInt32(events_liste.SelectedValue.ToString()));
     conditions_liste.DisplayMember = "Libelle";
     conditions_liste.ValueMember   = "Ref_util";
 }