Example #1
0
 public GroupedPropertyDescriptor(string name, PivotKey outerPivotKey, DisplayColumn displayColumn, PivotKey innerPivotKey)
     : base(name, displayColumn.GetColumnCaption(MergePivotKeys(outerPivotKey, innerPivotKey)), displayColumn.DataSchema.DataSchemaLocalizer, displayColumn.GetAttributes(MergePivotKeys(outerPivotKey, innerPivotKey)).ToArray())
 {
     OuterPivotKey = outerPivotKey;
     InnerPivotKey = innerPivotKey;
     DisplayColumn = displayColumn;
 }
Example #2
0
 private ListViewItem MakeListViewColumnItem(DisplayColumn displayColumn)
 {
     string listItemText = displayColumn.GetColumnCaption(null, ColumnCaptionType.localized);
     
     var listViewItem = new ListViewItem {Text = listItemText };
     Debug.Assert(!displayColumn.ColumnSpec.Hidden);
     if (!string.IsNullOrEmpty(displayColumn.ColumnSpec.Caption))
     {
         listViewItem.Font = new Font(listViewItem.Font, FontStyle.Bold | listViewItem.Font.Style);
         DataSchema dataSchema = displayColumn.DataSchema;
         var columnCaption = dataSchema.GetColumnCaption(displayColumn.ColumnDescriptor);
         listViewItem.ToolTipText = columnCaption.GetCaption(dataSchema.DataSchemaLocalizer);
     }
     return listViewItem;
 }
Example #3
0
 private ListViewItem MakeListViewColumnItem(DisplayColumn displayColumn)
 {
     string listItemText = displayColumn.GetColumnCaption(null, ColumnCaptionType.localized);
     
     var listViewItem = new ListViewItem {Text = listItemText };
     Debug.Assert(!displayColumn.ColumnSpec.Hidden);
     if (!string.IsNullOrEmpty(displayColumn.ColumnSpec.Caption))
     {
         listViewItem.Font = new Font(listViewItem.Font, FontStyle.Bold | listViewItem.Font.Style);
         DataSchema dataSchema = displayColumn.DataSchema;
         ColumnCaption columnCaption = dataSchema.GetColumnCaption(displayColumn.ColumnDescriptor);
         listViewItem.ToolTipText = dataSchema.GetLocalizedColumnCaption(columnCaption);
     }
     return listViewItem;
 }