diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2020-07-22 12:30:23 +0300 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2020-07-22 12:30:23 +0300 |
| commit | 93bf6344f8cc37a662c19db81c4f341e5b9ed0f0 (patch) | |
| tree | 97bdd9c49faa069110ccb1cd32635fcaabd29725 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Models | |
| parent | 66f8cf884fbd7f85976e96028c8047c0985a9d8f (diff) | |
| parent | 9aa38289b089d2518c5b0ef68e78f262fe4a31ee (diff) | |
| download | Tango-93bf6344f8cc37a662c19db81c4f341e5b9ed0f0.tar.gz Tango-93bf6344f8cc37a662c19db81c4f341e5b9ed0f0.zip | |
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Models')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Models/ColorLinearizationModel.cs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Models/ColorLinearizationModel.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Models/ColorLinearizationModel.cs index fe9ec7e37..8a24a9702 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Models/ColorLinearizationModel.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Models/ColorLinearizationModel.cs @@ -9,7 +9,7 @@ namespace Tango.MachineStudio.RML.Models { public class ColorLinearizationModel { - private class LinearizationDataItem + public class LinearizationDataItem { public double L { get; set; } public double A { get; set; } @@ -22,14 +22,10 @@ namespace Tango.MachineStudio.RML.Models } - public void GetDataFromFile(string fileName) + public void GetDataFromFile(string fileName, out List<LinearizationDataItem> items) { - ExcelReader reader = new ExcelReader(fileName); - var items = reader.GetDataByIndex<LinearizationDataItem>("Sheet1", 2); - foreach (var item in items) - { - } + items = reader.GetDataByIndex<LinearizationDataItem>("Sheet1", 2); reader.Dispose(); } } |
