public void SaveSelectedData(string path) { var ids = DataPlot.Data.Where(e => e.IsSelected).Select(e => e.Id).ToArray(); if (ids.Count() > 0) { DataPlot.SaveChartJson(path, ids); } else { throw new Exception("Please select at least one data from the list"); } }
public void SaveData(string path, params int[] ids) { DataPlot.SaveChartJson(path, ids); }