Exemplo n.º 1
0
 private static void SetDriverPropertiesFromFileVersionInfo(ToolComponent driver, FileVersionInfo fileVersion)
 {
     if (!string.IsNullOrEmpty(fileVersion.Comments))
     {
         driver.SetProperty("Comments", fileVersion.Comments);
     }
 }
Exemplo n.º 2
0
        private static IDictionary <string, SerializedPropertyInfo> CreatePropertiesFromFileVersionInfo(FileVersionInfo fileVersion)
        {
            var toolComponent = new ToolComponent();

            if (!string.IsNullOrEmpty(fileVersion.Comments))
            {
                toolComponent.SetProperty("Comments", fileVersion.Comments);
            }
            if (!string.IsNullOrEmpty(fileVersion.CompanyName))
            {
                toolComponent.SetProperty("CompanyName", fileVersion.CompanyName);
            }
            if (!string.IsNullOrEmpty(fileVersion.ProductName))
            {
                toolComponent.SetProperty("ProductName", fileVersion.ProductName);
            }

            return(toolComponent.Properties);
        }