private void button_Click(object sender, RoutedEventArgs e) { var rc = new TrueCoord(); rc.Addpoint(0, 1, 2); rc.Addpoint(1, 3, 4); rc.Addpoint(3, 5, 6); rc.SaveToXml(@"C:\Users\Миша\Desktop\tst.xml"); }
public List <TrueCoord> GetTrueCoordsList(double resizeMnozj) { var res = new List <TrueCoord>(4); foreach (var ser in Model2.Series) { var s = ser as LineSeries; var trCrds = new TrueCoord(s.Title); int i = 0; foreach (var point in s.Points) { trCrds.Addpoint(i++, point.X, point.Y); } if (trCrds.X.Count == 0) { trCrds.Addpoint(0, 0, 0); } trCrds.ResizeTime(resizeMnozj); res.Add(trCrds); } return(res); }