Exemplo n.º 1
0
        private void SupEventCheck_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
        {
            for (int x = 0; x < Actuel.SousLevel.Count; x++)
            {
                if (Actuel.SousLevel[x].Nom == (string)SupEventCheck.SelectedItem)
                {
                    Final = Actuel.SousLevel[x];
                    string save = null;
                    if (StateCheckBox.SelectedIndex >= 0)
                    {
                        save = (string)StateCheckBox.SelectedItem;
                    }
                    StateEvent.Clear();
                    for (int y = 0; y < Final.SousLevel.Count; y++)
                    {
                        StateEvent.Add(Final.SousLevel[y].Nom);
                    }
                    for (int y = 0; y < Final.SousLevel.Count; y++)
                    {
                        if (save != null && Final.SousLevel[y].Nom == save)
                        {
                            StateCheckBox.SelectedIndex = y;
                        }
                    }

                    break;
                }
            }
        }
Exemplo n.º 2
0
        private void BaseEventCheck_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
        {
            for (int x = 0; x < donnee.Base.Count; x++)
            {
                if (donnee.Base[x].Nom == (string)BaseEventCheck.SelectedItem)
                {
                    Actuel = donnee.Base[x];
                    StateEvent.Clear();
                    EventToDo.Clear();
                    for (int y = 0; y < Actuel.SousLevel.Count; y++)
                    {
                        EventToDo.Add(Actuel.SousLevel[y].Nom);
                    }

                    break;
                }
            }
        }
Exemplo n.º 3
0
 public void Add(DataS dataS)
 {
     SousLevel.Add(dataS);
 }