예제 #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);
        }
예제 #2
0
 protected override AssetInfoModel CreateAssetInfoModel(IProject project)
 {
     return((AssetInfoModel)ProjectAssetInfoModel.Create(this.projectItem));
 }