/* * public int GetNodeIndexByStartNano(decimal start) * { * int index = (int)((start - Start) / NodeInterval); // works perfectly if no gaps * * decimal gapFactor = GetGapFactorByStartNano(start); * * int indexAdjustment = (int)(gapFactor / NodeInterval); * * index -= indexAdjustment; * * return index; * * } * * public decimal GetGapFactorByStartNano(decimal start) * { * decimal gapFactor = 0L; * * // this could potentially be reversed? * for (int n = 0; n < Gaps.Count; n++) * { * if (start >= Gaps[n].Start) * { * gapFactor = Gaps[n].Missing; * } * else * { * break; * } * } * * return gapFactor; * } */ public void AttachNodesData(NodesData attach) { DataMethods.AttachNodesData(attach, this); ComputeGaps(); }