/// <summary>
 /// Enum types are equal by primary key
 /// </summary>
 public bool Equals(PerformanceMeasureDataSourceType other)
 {
     if (other == null)
     {
         return(false);
     }
     return(other.PerformanceMeasureDataSourceTypeID == PerformanceMeasureDataSourceTypeID);
 }
Example #2
0
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static PerformanceMeasure CreateNewBlank(MeasurementUnitType measurementUnitType, PerformanceMeasureType performanceMeasureType, PerformanceMeasureDataSourceType performanceMeasureDataSourceType)
 {
     return(new PerformanceMeasure(default(string), measurementUnitType, performanceMeasureType, default(bool), default(bool), default(bool), performanceMeasureDataSourceType));
 }
Example #3
0
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public PerformanceMeasure(string performanceMeasureDisplayName, MeasurementUnitType measurementUnitType, PerformanceMeasureType performanceMeasureType, bool swapChartAxes, bool canCalculateTotal, bool isAggregatable, PerformanceMeasureDataSourceType performanceMeasureDataSourceType) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.PerformanceMeasureID          = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.PerformanceMeasureDisplayName = performanceMeasureDisplayName;
     this.MeasurementUnitTypeID         = measurementUnitType.MeasurementUnitTypeID;
     this.PerformanceMeasureTypeID      = performanceMeasureType.PerformanceMeasureTypeID;
     this.SwapChartAxes     = swapChartAxes;
     this.CanCalculateTotal = canCalculateTotal;
     this.IsAggregatable    = isAggregatable;
     this.PerformanceMeasureDataSourceTypeID = performanceMeasureDataSourceType.PerformanceMeasureDataSourceTypeID;
 }
Example #4
0
 public List <PerformanceMeasureReportedValue> GetReportedPerformanceMeasureValues(List <Project> projects)
 {
     return(PerformanceMeasureDataSourceType.GetReportedPerformanceMeasureValues(this, projects));
 }