/// <summary> /// 生成屏幕亮度数据 /// </summary> /// <returns></returns> private List <BrightnessData> generateData() { var brightnessData = new BrightnessData(); var src = brightnessData.Load(); return(brightnessData.Train(src)); }
public void LoadDatas() { var folders = @"F:\Docs\PL\Github\WindowsShade\WindowsShade\bin\Debug\Brightness"; //var folders = @"D:\PL\MyProjects\GitHub\WindowsShade\WindowsShade\bin\Debug\Brightness"; var d = new BrightnessData().Load(folders); var sb = new StringBuilder(); d.ToList().ForEach(m => { sb.AppendLine($"{m.Time},{m.Value}"); }); Debug.Write(sb.ToString()); }