Пример #1
0
 /// <summary>
 /// Retrieves a list of all ProductCodes that are currently known (i.e., available).
 /// </summary>
 public static List <string> GetAllProductCodeNames()
 {
     return(AppGlobal.GetFileNamesWithoutExtension(AppGlobal.AppDataDirectory, string.Format("*.{0}", Product.ProdXMLExtension)));
 }
Пример #2
0
    /// <summary>
    /// Retrieves a list of all ReleaseCodes that this Version has.
    /// </summary>
    /// <param name="productCode">CodeName of the Product for which ReleaseCodes are to be retrieved.</param>
    /// <returns>List of ReleaseCodes for the Version.</returns>
    public List <string> GetAllReleaseCodes(string productCode)
    {
        var dirPath = Path.Combine(AppGlobal.AppDataDirectory, productCode, CodeName);

        return(AppGlobal.GetFileNamesWithoutExtension(dirPath, string.Format("*.{0}", Release.RelXMLExtension)));
    }
Пример #3
0
 /// <summary>
 /// Retrieves a list of all VersionCodes that this Product has.
 /// </summary>
 /// <returns>List of VersionCodes for the Version.</returns>
 public List <string> GetAllVersionCodes()
 {
     return(AppGlobal.GetFileNamesWithoutExtension(VersionsDirPath, string.Format("*.{0}", Version.VerXMLExtension)));
 }