public Bagde_trad_list(Badge_BO badBO) { InitializeComponent(); ListLanguesBadges = Appel_List.GetTraductionBadge(badBO); list.ItemsSource = ListLanguesBadges; BadgeName.Content = badBO.Intitule; }
public Categories_Trad_List(Categorie_BO categorie) { InitializeComponent(); listLangCat = Appel_List.GetLanguesCategoriesByIdCat(categorie); list.ItemsSource = listLangCat; CategorieName.Content = categorie.Intitule; }
public Competence_trad_ajout(Competence_BO compBO) { InitializeComponent(); listLangues = Appel_List.GetLangues(); langue.ItemsSource = listLangues; comp.Content = compBO.Competence; compeBO = compBO; }
public Create_Langues_Categories() { InitializeComponent(); listCategories = Appel_List.GetCategories(); C2.ItemsSource = listCategories; listLangues = Appel_List.GetLangues(); C3.ItemsSource = listLangues; }
public Competence_trad_list(Competence_BO compBO) { InitializeComponent(); listtrad = Appel_List.GetTradCompetence(compBO); list1.ItemsSource = listtrad.Keys; Intitule.Content = compBO.Competence; compeBO = compBO; }
private void Modification_Click(object sender, RoutedEventArgs e) { lanbadBO.Traduction = C1.Text; Update.UpdateBadgeTrad(lanbadBO); List <Badge_BO> listBadges = Appel_List.GetBadges(); Badge_BO bag = listBadges.Find(x => x.Id_Badge == lanbadBO.Badge); this.NavigationService.Navigate(new Bagde_trad_list(bag)); }
public UpdateCompetence(Competence_BO compBO) { InitializeComponent(); C1.Text = compBO.Competence; listCategories = Appel_List.GetCategories(); C2.ItemsSource = listCategories; C2.SelectedItem = compBO.Categorie; listCompetences = Appel_List.GetCompetences(); C3.ItemsSource = listCompetences; id = compBO.Id_Competence; }
private void Creation_Click(object sender, RoutedEventArgs e) { var lang = new Langue_BO { Intitule = C1.Text }; Create.CreateLangue(lang); listLangues = Appel_List.GetLangues(); list.ItemsSource = listLangues; }
private void Creation_Click(object sender, RoutedEventArgs e) { var badg = new Badge_BO { Intitule = C1.Text }; Create.CreateBadge(badg); listBadges = Appel_List.GetBadges(); list.ItemsSource = listBadges; }
public CreateCategorie() { InitializeComponent(); listCategories = Appel_List.GetCategories(); var catMere = new Categorie_BO { Intitule = "Aucune catégorie mère" }; listCategories.Add(catMere); C2.ItemsSource = listCategories; }
private void Modification_Click(object sender, RoutedEventArgs e) { LangueCategorie_BO lanCatBO = new LangueCategorie_BO { Categorie = CategorieName.Content.ToString(), Langue = Langue, Traduction = C1.Text, Id_Categorie = catId }; Update.UpdateLangueCategorie(lanCatBO); List <Categorie_BO> listCat = Appel_List.GetCategories(); Categorie_BO Cat = listCat.Find(x => x.Id_Categorie == catId); this.NavigationService.Navigate(new Categories_Trad_List(Cat)); }
public UpdateCategorie(Categorie_BO catBO) { InitializeComponent(); C1.Text = catBO.Intitule; listCategoriesMere = Appel_List.GetCategories(); listCategoriesMere.RemoveAt(listCategoriesMere.FindIndex(x => x.Intitule == catBO.Intitule)); var catMere = new Categorie_BO { Intitule = "Aucune catégorie mère" }; if (catBO == null) { catBO.Categorie_mere = "Aucune catégorie mère"; } listCategoriesMere.Add(catMere); C2.ItemsSource = listCategoriesMere; C2.SelectedItem = catBO.Categorie_mere; id = catBO.Id_Categorie; }
public Competences() { InitializeComponent(); listCompetences = Appel_List.GetCompetences(); list.ItemsSource = listCompetences; }
public CreateCompetence() { InitializeComponent(); listCategories = Appel_List.GetCategories(); C2.ItemsSource = listCategories; }
public Categories() { InitializeComponent(); listCategories = Appel_List.GetCategories(); list.ItemsSource = listCategories; }
public Badge_trad() { InitializeComponent(); listBadges = Appel_List.GetBadges(); list.ItemsSource = listBadges; }
public Langues() { InitializeComponent(); listLangues = Appel_List.GetLangues(); list.ItemsSource = listLangues; }