public int GetColumnImageIndex(PropertyDescriptor property, TypeSpecifics specifics)
            {
                var r = wrapped.GetColumnImageIndex(property, specifics);

                var ev = CustomColumnImageIndex;
                if (ev != null)
                {
                    var e = new CustomColumnImageIndexEventArgs(property, specifics, r);
                    ev(this, e);
                    r = e.Index;
                }

                return r;
            }
            public int GetColumnImageIndex(PropertyDescriptor property, TypeSpecifics specifics)
            {
                var r = wrapped.GetColumnImageIndex(property, specifics);

                var ev = CustomColumnImageIndex;

                if (ev != null)
                {
                    var e = new CustomColumnImageIndexEventArgs(property, specifics, r);
                    ev(this, e);
                    r = e.Index;
                }

                return(r);
            }
 private static void CustomFieldListImageProviderFeature_CustomColumnImageIndex(object sender, CustomColumnImageIndexEventArgs e)
 {
     if (((IContainerComponent)(e.Property as CalculatedPropertyDescriptorBase))?.Component is SummaryField)
     {
         e.Index = CustomFieldListImageProviderFeature.Instance.FieldListSumIndex;
     }
 }
Example #4
0
        static void CustomFieldListImageProviderFeature_CustomColumnImageIndex(object sender, CustomColumnImageIndexEventArgs e)
        {
            var containerComponent = e.Property as CalculatedPropertyDescriptorBase;

            if (containerComponent != null && ((IContainerComponent)containerComponent).Component is SummaryField)
            {
                e.Index = CustomFieldListImageProviderFeature.Instance.FieldListSumIndex;
            }
        }
 static void CustomFieldListImageProviderFeature_CustomColumnImageIndex(object sender, CustomColumnImageIndexEventArgs e)
 {
     var containerComponent = e.Property as CalculatedPropertyDescriptorBase;
     if (containerComponent != null && ((IContainerComponent)containerComponent).Component is SummaryField)
         e.Index = CustomFieldListImageProviderFeature.Instance.FieldListSumIndex;
 }