private static bool HasView(ModelItem modelItem, WorkflowViewService viewService, bool allowDrillIn) { ActivityDesignerOptionsAttribute options = WorkflowViewService.GetAttribute <ActivityDesignerOptionsAttribute>(modelItem.ItemType); Type viewType = viewService.GetDesignerType(modelItem.ItemType); return(typeof(WorkflowViewElement).IsAssignableFrom(viewType) && (!allowDrillIn || options == null || options.AllowDrillIn)); }
private static bool IsDefaultDesigner(EditingContext context, ModelItem item) { WorkflowViewService viewService = GetViewService(context); Type viewType = viewService.GetDesignerType(item.ItemType); return(viewType == typeof(ActivityDesigner)); }