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;
}