예제 #1
0
 public static IQFrameworkContainer AddTypeItem <TNodeData, TViewModel, TDrawer>(this IQFrameworkContainer container) where TNodeData : ITypedItem
 {
     container.AddItem <TNodeData>();
     container.RegisterChildGraphItem <TNodeData,
                                       TViewModel,
                                       TDrawer>();
     return(container);
 }
예제 #2
0
 public static IQFrameworkContainer AddItem <TNodeData>(this IQFrameworkContainer container) where TNodeData : IDiagramNodeItem
 {
     container.RegisterChildGraphItem <TNodeData, ScaffoldNodeChildItem <TNodeData> .ViewModel, ScaffoldNodeChildItem <TNodeData> .Drawer>();
     return(container);
 }