public StrategyDataItemInfo DataItem(string fieldName, Color color)
 {
     DataItemInfos.Add(new StrategyDataItemInfo()
     {
         FieldName = fieldName, Color = color
     });
     return(DataItemInfos.Last());
 }
 public StrategyDataItemInfo DataItem(string fieldName, Color color, int width)
 {
     DataItemInfos.Add(new StrategyDataItemInfo()
     {
         FieldName = fieldName, Color = color, GraphWidth = width
     });
     return(DataItemInfos.Last());
 }
 public StrategyDataItemInfo EnumItem(string fieldName)
 {
     DataItemInfos.Add(new StrategyDataItemInfo()
     {
         FieldName = fieldName, Visibility = DataVisibility.Table
     });
     return(DataItemInfos.Last());
 }
 public StrategyDataItemInfo DataItem(string fieldName, string formatString)
 {
     DataItemInfos.Add(new StrategyDataItemInfo()
     {
         FieldName = fieldName, FormatString = formatString
     });
     return(DataItemInfos.Last());
 }
 public StrategyDataItemInfo TimeItem(string fieldName)
 {
     DataItemInfos.Add(new StrategyDataItemInfo()
     {
         FieldName = fieldName, Visibility = DataVisibility.Table, Type = DataType.DateTime, FormatString = "dd.MM.yyyy hh:mm"
     });
     return(DataItemInfos.Last());
 }
 public void RegisterData(DataItemInfo info)
 {
     DataItemInfos.Add(info);
 }
 public void RegisterData(Type targetType, string dataName, string dataFieldName, params SortInfo[] sorts)
 {
     DataItemInfos.Add(new DataItemInfo(targetType, dataName, dataFieldName, sorts));
 }