Example #1
0
 public bool Lesser(TimeFrame other)
 {
     // add comparisions for all members here
     return(this.unit < other.unit || (this.unit == other.unit && this.period < other.period));
 }
Example #2
0
 public IntervalImpl(BarUnit unit, int interval, BarUnit secondaryUnit, int secondaryInterval)
     : this(unit, interval)
 {
     this.secondaryTimeFrame = new TimeFrame(secondaryUnit, secondaryInterval);
     CalcSecondaryType();
 }
Example #3
0
 public bool Equals(TimeFrame other)
 {
     // add comparisions for all members here
     return(this.unit == other.unit && this.period == other.period);
 }