Пример #1
0
 /// <summary>
 /// Create instance using passed-in GasEndPoint
 /// </summary>
 /// <param name="gasEndPoint">Contents will be cloned by this method</param>
 /// <param name="cylinderUsage"></param>
 /// <param name="durationInUse">Seconds</param>
 /// <param name="flowRate">ml/Sec</param>
 /// <param name="gasOperationGroup"></param>
 /// <returns></returns>
 public UsedGasEndPoint(GasEndPoint gasEndPoint, CylinderUsage cylinderUsage, TimeSpan durationInUse, int flowRate, short gasOperationGroup)
     : this( gasEndPoint )
 {
     this.Usage             = cylinderUsage;
     this.DurationInUse     = Convert.ToInt32(durationInUse.TotalSeconds);
     this.FlowRate          = flowRate;
     this.GasOperationGroup = gasOperationGroup;
 }
Пример #2
0
 public UsedGasEndPoint(GasEndPoint gasEndPoint, CylinderUsage cylinderUsage, TimeSpan durationInUse, short gasOperationGroup)
     : this(gasEndPoint, cylinderUsage, durationInUse, DomainModelConstant.NullInt, gasOperationGroup)
 {
 }
Пример #3
0
 public UsedGasEndPoint(GasEndPoint gasEndPoint, CylinderUsage cylinderUsage, TimeSpan durationInUse)
     : this(gasEndPoint, cylinderUsage, durationInUse, DomainModelConstant.NullInt, -1)
 {
 }