public CCalendrier[] GetListeCalendriersDependants() { Hashtable tableDependants = new Hashtable(); FillHashtableDependants(tableDependants); CCalendrier[] calendriers = new CCalendrier[tableDependants.Keys.Count + 1]; calendriers[0] = this; int nIndex = 1; foreach (CCalendrier calendrier in tableDependants.Keys) { calendriers[nIndex++] = calendrier; } return(calendriers); }
//------------------------------------------------------------------- public override CResultAErreur VerifieDonnees(CObjetDonnee objet) { CResultAErreur result = CResultAErreur.True; try { CCalendrier calendrier = (CCalendrier)objet; if (calendrier.Libelle == "") { result.EmpileErreur(I.T("The label cannot be empty|126")); } if (calendrier.HoraireParDefaut == null) { result.EmpileErreur(I.T("The default daily schedule must be defined|169")); } } catch (Exception e) { result.EmpileErreur(new CErreurException(e)); } return(result); }