public override bool HasEdtion(EditionObject edition)
        {
            if (edition.ViewModelProprieteNom == "FormationsScolaires")
            {
                return(true);
            }

            var propreties = MethodBase.GetCurrentMethod().DeclaringType.GetProperties().ToList();

            return(propreties.Any(x => x.Name == edition.ViewModelProprieteNom));
        }
 private string GetEditionid(EditionObject edition)
 {
     if (edition.ObjetAjoute != null)
     {
         return(edition.ObjetAjoute.GraphKey);
     }
     else if (!string.IsNullOrEmpty(edition.ObjetSupprimeId))
     {
         return(edition.ObjetSupprimeId);
     }
     else
     {
         return(edition.NoeudModifie.GraphKey);
     }
 }
Example #3
0
 public virtual bool HasEdtion(EditionObject edition)
 {
     throw new NotImplementedException();
 }
 public override bool HasEdtion(EditionObject edition)
 {
     return(edition.ViewModelProprieteNom == "DomaineDInterventions");
 }