aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Documents/ExcelReader.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-07-23 11:33:41 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-07-23 11:33:41 +0300
commit3987f9cab0cb3d0d15d0ba784db14be4472f45ca (patch)
tree22b2dce8d1703fb5661376a8b23f9ca4e5a98688 /Software/Visual_Studio/Tango.Documents/ExcelReader.cs
parent3fc4e625860d6c847be251641b533ee280dc4693 (diff)
downloadTango-3987f9cab0cb3d0d15d0ba784db14be4472f45ca.tar.gz
Tango-3987f9cab0cb3d0d15d0ba784db14be4472f45ca.zip
Implemented color catalogs module.
Diffstat (limited to 'Software/Visual_Studio/Tango.Documents/ExcelReader.cs')
-rw-r--r--Software/Visual_Studio/Tango.Documents/ExcelReader.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.Documents/ExcelReader.cs b/Software/Visual_Studio/Tango.Documents/ExcelReader.cs
index 3d6b37445..6d8cc10f2 100644
--- a/Software/Visual_Studio/Tango.Documents/ExcelReader.cs
+++ b/Software/Visual_Studio/Tango.Documents/ExcelReader.cs
@@ -49,7 +49,7 @@ namespace Tango.Documents
/// <param name="templatePath">File path to the Excel document.</param>
/// <param name="throwOnError">Throw exceptions if encountering an error while parsing the document.</param>
public ExcelReader(string templatePath, bool throwOnError = true)
- : this(File.OpenRead(templatePath), throwOnError) { }
+ : this(new FileStream(templatePath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite), throwOnError) { }
#endregion
@@ -405,6 +405,10 @@ namespace Tango.Documents
prop.SetValue(obj, Convert.ToBoolean(val), null);
else if (PType == typeof(byte) || PType == typeof(byte?))
prop.SetValue(obj, Convert.ToByte(val), null);
+ else if (PType == typeof(System.Windows.Media.Color))
+ {
+ //Do nothing..
+ }
else
prop.SetValue(obj, val, null);
}