Skip to content

Commit

Permalink
Merge pull request #212 from mpostol/UANodeSetValidation5.1.0
Browse files Browse the repository at this point in the history
Remove dependency on CodeProtect - consolidated #211
  • Loading branch information
mpostol authored Feb 6, 2021
2 parents 2294fa9 + aedf560 commit 9610e9b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ModelDesigner.DesignStudio/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ private void pasteToolStripMenuItem_Click(object sender, EventArgs e)
else
MessageBox.Show(Resources.MianWindow_FunctionalityAvailiableOnlyInModelView);
}

//TODO Remove dependency on CodeProtect - consolidated #211
private void oPCViewerToolStripMenuItem_Click(object sender, EventArgs e)
{
try
Expand Down
2 changes: 1 addition & 1 deletion ModelDesigner.DesignStudio/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ private static void ComposeApplication()
Wrappers.ViewModelFactory.Factory = new Wrappers4ProperyGrid.ViewModelFactory();
}

//TODO Remove dependency on CodeProtect - consolidated #211
internal static void DoInstallLicense(bool loadLicenseFromDefaultContainer)
{
try
{
//TODO Remove dependency on CodeProtect #200
CAS.Lib.CodeProtect.LibInstaller.InstallLicense(loadLicenseFromDefaultContainer);
AssemblyTraceEvent.Tracer.TraceEvent(TraceEventType.Verbose, 113, "Installed the License without errors");
}
Expand Down
1 change: 1 addition & 0 deletions ModelDesigner.DesignStudio/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
[assembly: Guid( "33281f75-30a8-43e1-a2b3-915eaaf43915" )]
[assembly: AssemblyVersion("4.3.2.*")]
[assembly: AssemblyFileVersion("4.3.2")]
//TODO Remove dependency on CodeProtect - consolidated #211
[assembly: CAS.Lib.CodeProtect.AssemblyHelper( Company = "Mariusz Postol", Email = "[email protected]", Phone = "+48 (608) 619 899", Product = "OOI ASMD", Url = "https://mpostol.github.io/ASMD/" )]
[assembly: InternalsVisibleToAttribute("CAS.CommServer.UA.ModelDesigner.DesignStudio.UnitTest, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b3cff1bec656a6" +
"e3784c75cacce8ee3bc695d0ce135d820c86465eb49b2353f0438d28ad9a458e5350c0c141393d" +
Expand Down
4 changes: 2 additions & 2 deletions ModelDesigner.DesignStudio/Wrappers/ModelDesign.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ internal void GetImportMenu(System.Windows.Forms.ToolStripItemCollection items)
{
if (this.TestIfReadOnlyAndRetrunTrueIfReadOnly())
return;
OPCDA.CreateImportMenuItems(items, new EventHandler(CreateImportMenuClick));
ImportOPCDAAddressSpace.CreateImportMenuItems(items, new EventHandler(CreateImportMenuClick));
}

protected override string NodeName()
Expand All @@ -120,7 +120,7 @@ protected override string NodeTip()

private void CreateImportMenuClick(object sender, EventArgs e)
{
OpcUaModelCompiler.NodeDesign[] nodes = OPCDA.OnImportMenuItemClick(GetTargetNamespace());
OpcUaModelCompiler.NodeDesign[] nodes = ImportOPCDAAddressSpace.OnImportMenuItemClick(GetTargetNamespace());
if (nodes == null)
return;
List<BaseTreeNode> arr = new List<BaseTreeNode>();
Expand Down
5 changes: 3 additions & 2 deletions ModelDesigner.ImportExport/ImportOPCDAAddressSpace.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@
using System.Diagnostics;
using System.Windows.Forms;
using System.Xml;
using CASLibOPCAddressSpace = CAS.Lib.OPC.AddressSpace;
using CASLibOPCAddressSpace = CAS.Lib.OPC.AddressSpace; //TODO Remove dependency on CodeProtect - consolidated #211
using OpcUaModelCompiler = UAOOI.SemanticData.UAModelDesignExport.XML;

namespace CAS.UA.Model.Designer.ImportExport
{
/// <summary>
/// Import model from OPC DA address space.
/// </summary>
public static class OPCDA
//TODO Remove dependency on CodeProtect - consolidated #211
public static class ImportOPCDAAddressSpace
{
#region internal

Expand Down

0 comments on commit 9610e9b

Please sign in to comment.