Example #1
0
        private void changeToUp(SortedDictionary <DateTimeOffset, Double> items, List <OutlineItem> pivots, int index)
        {
            DateTimeOffset date = DataCollection[index].Time;

            if (items.ContainsKey(date))
            {
                items[date] = DataCollection[index].Low;
            }
            else
            {
                items.Add(date, DataCollection[index].Low);
            }

            for (int i = Threshold; i < highers.Count; i++)
            {
                if (!items.ContainsKey(DataCollection[highers[i]].Time))
                {
                    items.Add(DataCollection[highers[i]].Time, DataCollection[highers[i]].High);
                }
            }

            OutlineItem newOutlineItem = new OutlineItem(date, items[date], index, PivotType.Bottom);

            pivots.Add(newOutlineItem);
            lowers.Clear();
        }
Example #2
0
 public OrbitDescription(bool isLocked, SeFlg centric, OrbitSet orbits, int round, OutlineItem pivot, double slope)
 {
     IsLocked   = isLocked;
     Pivot      = pivot;
     Owner      = orbits.Owner;
     Centric    = centric;
     IsReversed = orbits.IsReversed;
     Slope      = slope;
     Offset     = orbits.Offset + 360 * round;
 }
Example #3
0
 public OrbitDescription(bool isLocked, bool isReversed, PlanetId owner, SeFlg centric, double offset, OutlineItem pivot, double slope)
 {
     IsLocked   = isLocked;
     Pivot      = pivot;
     Owner      = owner;
     Centric    = centric;
     IsReversed = isReversed;
     Slope      = slope;
     Offset     = offset;
 }