Esempio n. 1
0
 protected override void Filtering(SocketEventContext context)
 {
     if (context.Connector.Definition.Parts.Any(p => p.PartDefinition.Name == "SequencePart"))
     {
         context.SocketSorters.Add(new SequenceSortingFilter());
     }
 }
Esempio n. 2
0
 protected override void Filtering(SocketEventContext context)
 {
     // If title is present on the connector, sort on it. Titles will automatically get copied up.
     // TODO: Need an easy way to disable title editing on the connector (and always persist changes), so this can still be used as a sorting convenience
     // in situations where it makes no sense to alter/override the title.
     if (context.Connector.Definition.Parts.Any(p => p.PartDefinition.Name == "TitlePart"))
     {
         context.SocketSorters.Add(new TitleSortingFilter());
     }
 }
        protected override void Filtering(SocketEventContext context)
        {
            var context2 = context as SocketDisplayContext;

            if (context2 != null)
            {
                context2.ModelContext.With <DrillFilterData>(df => {
                    if (context.Connector.Name == df.DrillType && df.Id.HasValue)
                    {
                        context.SocketFilters.Add(new DrillRouteFilter(df.Id.Value));
                        context.Connector.DisplayType = "Detail";
                    }
                });
            }
        }