File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 183
183
</DataGridTemplateColumn .CellTemplate>
184
184
</DataGridTemplateColumn >
185
185
186
- <DataGridTextColumn Header =" Branch " x : Name =" txtColumnRenderPipeline" Binding =" {Binding SRP}" CellStyle =" {StaticResource NoFocusCellStyle}" ClipboardContentBinding =" {x:Null}" IsReadOnly =" True" Width =" 60 " >
186
+ <DataGridTextColumn Header =" SRP " x : Name =" txtColumnRenderPipeline" Binding =" {Binding SRP}" CellStyle =" {StaticResource NoFocusCellStyle}" ClipboardContentBinding =" {x:Null}" IsReadOnly =" True" Width =" 50 " >
187
187
<DataGridTextColumn .HeaderTemplate>
188
188
<DataTemplate >
189
189
<TextBlock Text =" SRP" IsHitTestVisible =" False" />
Original file line number Diff line number Diff line change @@ -3334,6 +3334,12 @@ public int Compare(Object a, Object b)
3334
3334
if ( ( ( Project ) a ) . TargetPlatform == null ) return direction == ListSortDirection . Ascending ? - 1 : 1 ;
3335
3335
if ( ( ( Project ) b ) . TargetPlatform == null ) return direction == ListSortDirection . Ascending ? 1 : - 1 ;
3336
3336
return direction == ListSortDirection . Ascending ? ( ( Project ) a ) . TargetPlatform . CompareTo ( ( ( Project ) b ) . TargetPlatform ) : ( ( Project ) b ) . TargetPlatform . CompareTo ( ( ( Project ) a ) . TargetPlatform ) ;
3337
+ case "SRP" :
3338
+ // handle null values
3339
+ if ( ( ( Project ) a ) . SRP == null && ( ( Project ) b ) . SRP == null ) return 0 ;
3340
+ if ( ( ( Project ) a ) . SRP == null ) return direction == ListSortDirection . Ascending ? - 1 : 1 ;
3341
+ if ( ( ( Project ) b ) . SRP == null ) return direction == ListSortDirection . Ascending ? 1 : - 1 ;
3342
+ return direction == ListSortDirection . Ascending ? ( ( Project ) a ) . SRP . CompareTo ( ( ( Project ) b ) . SRP ) : ( ( Project ) b ) . SRP . CompareTo ( ( ( Project ) a ) . SRP ) ;
3337
3343
default :
3338
3344
return 0 ;
3339
3345
}
You can’t perform that action at this time.
0 commit comments