//public static IQFrameworkContainer ConnectionStrategy<TSource, TTarget>(this IQFrameworkContainer container, Color connectionColor, // Func<TSource, TTarget, bool> isConnected, Action<TSource, TTarget> apply, Action<TSource, TTarget> remove) where TSource : class, IConnectable where TTarget : class, IConnectable //{ // container.RegisterInstance<IConnectionStrategy>(new CustomConnectionStrategy<TSource, TTarget>(connectionColor,isConnected,apply,remove), typeof(TSource).Name + "_" + typeof(TTarget).Name + "CustomConnection"); // return container; //} public static IQFrameworkContainer RegisterGraphItem <TModel, TViewModel>(this IQFrameworkContainer container) { container.RegisterRelation <TModel, ViewModel, TViewModel>(); return(container); }
public static IQFrameworkContainer RegisterDataChildViewModel <TModel, TViewModel>( this IQFrameworkContainer container) { container.RegisterRelation <TModel, ItemViewModel, TViewModel>(); return(container); }
public static void RegisterFilterItem <TFilterData, TAllowedItem>(this IQFrameworkContainer container) { container.RegisterRelation <TFilterData, IDiagramNodeItem, TAllowedItem>(); }
public static IQFrameworkContainer RegisterCodeTemplate <TFor, TTemplateType>( this IQFrameworkContainer container) { container.RegisterRelation <TFor, CodeGenerator, TTemplateType>(); return(container); }
public static IQFrameworkContainer RegisterChildGraphItem <TModel, TViewModel, TDrawer>(this IQFrameworkContainer container) { container.RegisterRelation <TModel, ItemViewModel, TViewModel>(); container.RegisterItemDrawer <TViewModel, TDrawer>(); return(container); }
public static void RegisterDrawer <TViewModel, TDrawer>(this IQFrameworkContainer container) { container.RegisterRelation <TViewModel, IDrawer, TDrawer>(); }