예제 #1
0
        private void ComboBoxTypeConge_Initialized(object sender, EventArgs e)
        {
            List <TypeConges> typeConges = TypeCongeController.RechercheTousLesConges();
            var combo = sender as ComboBox;

            combo.ItemsSource = typeConges;
        }
예제 #2
0
        public void ComboBoxTypesConges_Initialized(object sender, EventArgs e)
        {
            List <TypeConges> typeConges = TypeCongeController.RechercheTousLesConges();

            if (typeConges != null && typeConges.Count > 0)
            {
                var combo = sender as ComboBox;
                combo.ItemsSource = typeConges;
            }
        }
예제 #3
0
 private void UpdateComboboxes()
 {
     ComboBoxTypeConge.ItemsSource       = TypeCongeController.RechercheTousLesConges();
     ComboBoxListeTypeConges.ItemsSource = TypeCongeController.RechercheTousLesConges();
 }