void Clear(CBPoint.Etype _tp) { foreach (CBPoint dp in L) { dp.Clear(_tp); } L.RemoveAll(x => x.IsOn); }
CBPoint FindAdd(CBPoint.Etype _tp, DataPoint _dp) { CBPoint cbdp = null; foreach (CBPoint p in L) { if (p.dp == _dp) { cbdp = p; break; } } if (cbdp == null) { cbdp = new CBPoint(_dp); } cbdp.Mark(_tp, true); L.Add(cbdp); return(cbdp); }