public void AddData(oscilloscopeData data) { Datas.Add(data); Path path = data.path; canvas.Children.Add(path); Canvas.SetLeft(path, ZeroLeft); Canvas.SetTop(path, ZeroTop); }
public void DeleteData(oscilloscopeData data) { canvas.Children.Remove(data.path); Datas.Remove(data); }