Dev2.Studio.UserInterfaceLayoutProvider.GetUserInterfaceType C# (CSharp) Method

GetUserInterfaceType() private static method

private static GetUserInterfaceType ( IContextualResourceModel resource ) : Type
resource IContextualResourceModel
return System.Type
        private static Type GetUserInterfaceType(IContextualResourceModel resource)
        {
            Type userInterfaceType = null;

            if (resource.Category.Equals("Webpage", StringComparison.InvariantCultureIgnoreCase)
                || resource.Category.Equals("Human Interface Workflow", StringComparison.InvariantCultureIgnoreCase))
            {
                userInterfaceType = typeof(DsfWebPageActivity);
            }

            if (resource.Category.Equals("Website", StringComparison.InvariantCultureIgnoreCase))
            {
                userInterfaceType = typeof(DsfWebSiteActivity);
            }

            return userInterfaceType;
        }