public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
        {
            if (value is string s)
            {
                PointConverter pc  = new PointConverter();
                PointSeries    pl  = new PointSeries();
                string[]       ppl = s.Split(new string[] { "\r\n" }, StringSplitOptions.RemoveEmptyEntries);
                foreach (string pp in ppl)
                {
                    pl.Add((Point)pc.ConvertFrom(pp));
                }

                return(pl);
            }

            return(null);
        }
Example #2
0
 public PointSeries(PointSeries ps0)
 {
     _tolerance = ps0._tolerance;
     _listCore  = new List <Point>(ps0._listCore);
 }