Пример #1
0
 public SocketDisplayContext(IContent leftContent, ConnectorDescriptor connectorDefinition, string displayType, SocketsModel socketsContext)
     : base(leftContent, connectorDefinition, socketsContext)
 {
     Left.DisplayType = displayType;
     CacheSocket = false;
     Paradigms = new ParadigmsContext();
 }
Пример #2
0
 public ModelShapeContext(object model, IShapeFactory shapeFactory)
 {
     Mode        = "Display";
     Model       = model;
     New         = shapeFactory;
     DisplayType = "Detail";
     // Initializers
     FindPlacement = (partType, differentiator, defaultLocation) => new PlacementInfo {
         Location = defaultLocation, Source = String.Empty
     };
     ChainedResults = new List <ModelChainContext>();
     Paradigms      = new ParadigmsContext();
     CustomContext  = new Dictionary <Type, object>();
     //         Stuff = new Stuff();
 }
 public static ModelShapeBuilder WithParadigms(this ModelShapeBuilder builder, ParadigmsContext paradigms) {
     builder.Context.Paradigms = new ParadigmsContext(paradigms);
     return builder;
 }
Пример #4
0
 public static ModelShapeBuilder WithParadigms(this ModelShapeBuilder builder, ParadigmsContext paradigms)
 {
     builder.Context.Paradigms = new ParadigmsContext(paradigms);
     return(builder);
 }
Пример #5
0
 public ParadigmsContext(ParadigmsContext inheritFrom) {
     Inherited = inheritFrom.Keyed.Keys;
     Keyed = Inherited.ToDictionary(k=>k,k=>true);
 }
Пример #6
0
 public ParadigmsContext(ParadigmsContext inheritFrom)
 {
     Inherited = inheritFrom.Keyed.Keys;
     Keyed     = Inherited.ToDictionary(k => k, k => true);
 }