コード例 #1
0
        protected override void Filtering(SocketEventContext context)
        {
            if (context.Connector.Definition.Parts.Any(p => p.PartDefinition.Name == "SequencePart"))
            {
                context.SocketSorters.Add(new SequenceSortingFilter());
            }

        }
コード例 #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());
     }
 }
コード例 #3
0
        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";
                    }
                });
            }

        }
コード例 #4
0
ファイル: SocketHandler.cs プロジェクト: akhurst/ricealumni
 void ISocketHandler.Filtering(SocketEventContext context)
 {
     Filtering(context);
 }
コード例 #5
0
ファイル: SocketHandler.cs プロジェクト: akhurst/ricealumni
 protected virtual void Filtering(SocketEventContext context) { }
コード例 #6
0
 void ISocketHandler.Filtering(SocketEventContext context)
 {
     Filtering(context);
 }
コード例 #7
0
 protected virtual void Filtering(SocketEventContext context)
 {
 }