public DocRessource(string id, string nom, string description, string path, EDocRessourceType typeRessource) { _id = id; _nom = nom; _description = description; _path = path; _typeRessource = typeRessource; }
public void ChargerViaXML(XmlNode noeud) { _description = noeud.Attributes[DocRessource.nomAttribut_Description].Value; _nom = noeud.Attributes[DocRessource.nomAttribut_Nom].Value; _description = noeud.Attributes[DocRessource.nomAttribut_Path].Value; _typeRessource = (EDocRessourceType)int.Parse(noeud.Attributes[DocRessource.nomAttribut_TypeRessource].Value); _id = noeud.Attributes[DocRessource.nomAttributID].Value; }
public string GetPathOfFolder(EDocRessourceType typeresx) { foreach (DocDossierRessource dossier in m_dossiersresx) { if (dossier.TypeResx == typeresx) { return(dossier.Path); } } return(""); }
public bool UpdateFolderOf(EDocRessourceType typeresx, string nouveaupath) { if (!Directory.Exists(nouveaupath)) { return(false); } foreach (DocDossierRessource dossier in m_dossiersresx) { if (dossier.TypeResx == typeresx) { dossier.Path = nouveaupath; return(true); } } return(false); }
public DocDossierRessource(EDocRessourceType type, string path) { _path = path; _type = type; }