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

            combo.ItemsSource = typeConges;
        }
Example #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;
            }
        }
Example #3
0
 private void UpdateComboboxes()
 {
     ComboBoxTypeConge.ItemsSource       = TypeCongeController.RechercheTousLesConges();
     ComboBoxListeTypeConges.ItemsSource = TypeCongeController.RechercheTousLesConges();
 }