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;
            }
コード例 #2
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;
 }