コード例 #1
0
        public static WebResourceItem WebResourceItemFromNew(NewWebResource newWebResource, Guid solutionId)
        {
            WebResourceItem webResourceItem = new WebResourceItem
            {
                WebResourceId = newWebResource.NewId,
                Name          = newWebResource.NewName,
                DisplayName   = newWebResource.NewDisplayName,
                TypeName      = Crm.WebResource.GetWebResourceTypeNameByNumber(newWebResource.NewType.ToString()),
                Type          = newWebResource.NewType,
                SolutionId    = solutionId
            };

            return(webResourceItem);
        }
コード例 #2
0
        public static WebResourceItem WebResourceItemFromNew(NewWebResource newWebResource, Guid solutionId, ObservableCollection <MenuItem> projectFolders)
        {
            WebResourceItem webResourceItem = new WebResourceItem
            {
                WebResourceId  = newWebResource.NewId,
                Name           = newWebResource.NewName,
                DisplayName    = newWebResource.NewDisplayName,
                TypeName       = Crm.WebResource.GetWebResourceTypeNameByNumber(newWebResource.NewType.ToString()),
                Type           = newWebResource.NewType,
                ProjectFolders = projectFolders,
                SolutionId     = solutionId
            };

            return(webResourceItem);
        }
コード例 #3
0
        public static WebResourceItem WebResourceItemFromNew(NewWebResource newWebResource, Guid solutionId)
        {
            WebResourceItem webResourceItem = new WebResourceItem
            {
                WebResourceId       = newWebResource.NewId,
                Name                = newWebResource.NewName,
                DisplayName         = newWebResource.NewDisplayName,
                TypeName            = WebResourceTypes.GetWebResourceTypeNameByNumber(newWebResource.NewType.ToString()),
                Type                = newWebResource.NewType,
                SolutionId          = solutionId,
                Description         = newWebResource.NewDescription,
                PreviousDescription = newWebResource.NewDescription,
                IsManaged           = false
            };

            return(webResourceItem);
        }