Ejemplo n.º 1
0
        internal static ProjectAssetInfoModel Create(IProjectItem projectItem)
        {
            string path = projectItem.DocumentReference.Path;
            ProjectAssetInfoModel projectAssetInfoModel = ProjectItemNode.IsWpfSupportedImageType(path) ? (ProjectAssetInfoModel) new ImageAssetInfoModel() : new ProjectAssetInfoModel();

            projectAssetInfoModel.SetFullPath(path);
            return(projectAssetInfoModel);
        }
Ejemplo n.º 2
0
 protected override AssetInfoModel CreateAssetInfoModel(IProject project)
 {
     return((AssetInfoModel)ProjectAssetInfoModel.Create(this.projectItem));
 }