public Profil(bool edition = false, JSEmploye jSEmploye = null) { InitializeComponent(); Edition = edition; Title = "Profil"; if (jSEmploye == null) { employe = Settings.ActualUser; } else { employe = jSEmploye; } Nom.Text = employe.nom; Prenom.Text = employe.prenom; Adresse.Text = employe.adresseMail; Metier.Text = employe.metier; Service.Text = employe.service; Entreprise.Text = employe.entreprise; LinkedIn.Text = employe.linkedIn; EstAdmin.IsToggled = employe.estAdmin; EstChef.IsToggled = employe.estChefDeService; EstInterne.IsToggled = employe.estInterne; NavigationPage.SetHasNavigationBar(this, true); NavigationPage.SetHasBackButton(this, true); BtnGBox.IsVisible = true; BtnCBox.IsVisible = false; BtnRBox.IsVisible = false; ReqCompetenceProfil(); ReqGroupeProfil(); }
public AffichageGroupe(JSGroupe jSGroupe, bool modif = false, JSEmploye jSEmploye = null) { ActualStatus = modif; InitializeComponent(); this.Title = "Paramètre du groupe"; if (jSEmploye == null) { employe = Settings.ActualUser; } else { employe = jSEmploye; } groupe = jSGroupe; CheckDroit(); ChargementData(modif); }
public AffichageCompetence(JSCompetence jSCompetence, JSEmploye jSEmploye = null) { InitializeComponent(); if (jSEmploye == null) { employe = Settings.ActualUser; } else { employe = jSEmploye; } jsCompetence = jSCompetence; JSIntituleCompetence jS = jSCompetence.IntituleCompetences.Where(c => c.id_Langue == Settings.ActualLanguage).First(); Intitule.Text = jS.intitule; Description.Text = jS.description; RecupNote(); }