public SocketDisplayContext(IContent leftContent, ConnectorDescriptor connectorDefinition, string displayType, SocketsModel socketsContext) : base(leftContent, connectorDefinition, socketsContext) { Left.DisplayType = displayType; CacheSocket = false; Paradigms = new ParadigmsContext(); }
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; }
public static ModelShapeBuilder WithParadigms(this ModelShapeBuilder builder, ParadigmsContext paradigms) { builder.Context.Paradigms = new ParadigmsContext(paradigms); return(builder); }
public ParadigmsContext(ParadigmsContext inheritFrom) { Inherited = inheritFrom.Keyed.Keys; Keyed = Inherited.ToDictionary(k=>k,k=>true); }
public ParadigmsContext(ParadigmsContext inheritFrom) { Inherited = inheritFrom.Keyed.Keys; Keyed = Inherited.ToDictionary(k => k, k => true); }