Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions libEDSsharp/CanOpenEDS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
{
public partial class InfoSection
{
public virtual void Parse(Dictionary<string, string> section, string sectionname)

Check warning on line 31 in libEDSsharp/CanOpenEDS.cs

View workflow job for this annotation

GitHub Actions / build (net481, Release)

Missing XML comment for publicly visible type or member 'InfoSection.Parse(Dictionary<string, string>, string)'
{
this.section = section;

Expand Down Expand Up @@ -84,7 +84,7 @@
}
}

public partial class MandatoryObjects : SupportedObjects

Check warning on line 87 in libEDSsharp/CanOpenEDS.cs

View workflow job for this annotation

GitHub Actions / build (net481, Release)

Missing XML comment for publicly visible type or member 'MandatoryObjects'
{
public MandatoryObjects(Dictionary<string, string> section)
: this()
Expand Down Expand Up @@ -387,7 +387,14 @@
}

writer.WriteLine(string.Format("ObjectType=0x{0:X}", (int)objecttype));
writer.WriteLine(string.Format(";StorageLocation={0}", prop.CO_storageGroup));
if (prop.CO_countLabel != "")
{
writer.WriteLine(string.Format(";CountLabel={0}", prop.CO_countLabel));
}
if (prop.CO_storageGroup != "")
{
writer.WriteLine(string.Format(";StorageLocation={0}", prop.CO_storageGroup));
}

if (objecttype == ObjectType.ARRAY)
{
Expand Down Expand Up @@ -521,9 +528,9 @@
}
}
else
//Only allow our own extensions to populate the key/value pair
{
if (key == "StorageLocation" || key == "TPDODetectCos")
//Only allow our own extensions to populate the key/value pair
if (key == "CountLabel" || key == "StorageLocation" || key == "TPDODetectCos")
{
try
{
Expand Down Expand Up @@ -618,6 +625,11 @@
}

//Access Type
if (kvp.Value.ContainsKey("CountLabel"))
{
od.prop.CO_countLabel = kvp.Value["CountLabel"];
}

if (kvp.Value.ContainsKey("StorageLocation"))
{
od.prop.CO_storageGroup = kvp.Value["StorageLocation"];
Expand Down
Loading