Skip to content

Commit

Permalink
asp
Browse files Browse the repository at this point in the history
  • Loading branch information
PTKu committed Nov 3, 2023
1 parent 5cab696 commit b669bad
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ sandbox/**
**/tmp_*_.*

.application/**
.sandbox/**
.sandbox/**

.runtime
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using AXSharp.Connector;
using System.Globalization;
using AXSharp.Connector;
using AXSharp.Connector.Localizations;

namespace AXOpen.Core
Expand Down Expand Up @@ -29,6 +30,16 @@ public ComponentGroupContext(ITwinObject parent, IList<ITwinElement> kids, strin

private readonly ITwinObject _parent;

public string GetAttributeName(CultureInfo culture)
{
return this.Translate(AttributeName, culture);
}

public string GetHumanReadable(CultureInfo culture)
{
return this.Translate(HumanReadable, culture);
}

public ITwinObject GetParent()
{
return this._parent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// https://github.com/ix-ax/axsharp/blob/dev/LICENSE
// Third party licenses: https://github.com/ix-ax/axsharp/blob/dev/notices.md

using System.Globalization;
using AXSharp.Connector;
using AXSharp.Connector.Localizations;

Expand All @@ -29,6 +30,16 @@ public AxoFragmentedDataCompound(ITwinObject parent, IList<ITwinElement> kids)

private readonly ITwinObject _parent;

public string GetAttributeName(CultureInfo culture)
{
return this.Translate(AttributeName, culture);
}

public string GetHumanReadable(CultureInfo culture)
{
return this.Translate(HumanReadable, culture);
}

public ITwinObject GetParent()
{
return this._parent;
Expand Down
6 changes: 6 additions & 0 deletions src/global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"sdk": {
"version": "7.0.402"
}
}

15 changes: 15 additions & 0 deletions src/templates.simple/ax/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Debug live on PLC",
"type": "plc-debug",
"request": "launch",
"program": "${workspaceFolder}",
"ip": "192.168.0.4"
}
]
}

0 comments on commit b669bad

Please sign in to comment.