예제 #1
0
 public DocRessource(string id, string nom, string description, string path, EDocRessourceType typeRessource)
 {
     _id            = id;
     _nom           = nom;
     _description   = description;
     _path          = path;
     _typeRessource = typeRessource;
 }
예제 #2
0
 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;
 }
예제 #3
0
 public string GetPathOfFolder(EDocRessourceType typeresx)
 {
     foreach (DocDossierRessource dossier in m_dossiersresx)
     {
         if (dossier.TypeResx == typeresx)
         {
             return(dossier.Path);
         }
     }
     return("");
 }
예제 #4
0
        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);
        }
예제 #5
0
 public DocDossierRessource(EDocRessourceType type, string path)
 {
     _path = path;
     _type = type;
 }