Ejemplo n.º 1
0
 void Clear(CBPoint.Etype _tp)
 {
     foreach (CBPoint dp in L)
     {
         dp.Clear(_tp);
     }
     L.RemoveAll(x => x.IsOn);
 }
Ejemplo n.º 2
0
        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);
        }