Skip to content

Commit

Permalink
Fixes #13 go diagram license (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
msevestre authored Mar 21, 2017
1 parent 64a792f commit f75c2b2
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/OSPSuite.Assets/OSPSuite.Assets.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<owners>Open-Systems-Pharmacology</owners>
<projectUrl>https://github.com/Open-Systems-Pharmacology/$id$</projectUrl>
<licenseUrl>https://github.com/Open-Systems-Pharmacology/$id$/blob/master/LICENSE</licenseUrl>
<iconUrl>https://github.com/Open-Systems-Pharmacology/Suite/blob/master/logo.png</iconUrl>
<iconUrl>https://raw.githubusercontent.com/Open-Systems-Pharmacology/Suite/master/logo.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<copyright>Copyright © 2017 - Open Systems Pharmacology Community</copyright>
<tags>open-systems-pharmacology</tags>
Expand Down
2 changes: 1 addition & 1 deletion src/OSPSuite.Core/OSPSuite.Core.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<owners>Open-Systems-Pharmacology</owners>
<projectUrl>https://github.com/Open-Systems-Pharmacology/$id$</projectUrl>
<licenseUrl>https://github.com/Open-Systems-Pharmacology/$id$/blob/master/LICENSE</licenseUrl>
<iconUrl>https://github.com/Open-Systems-Pharmacology/Suite/blob/master/logo.png</iconUrl>
<iconUrl>https://raw.githubusercontent.com/Open-Systems-Pharmacology/Suite/master/logo.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<copyright>Copyright © 2017 - Open Systems Pharmacology Community</copyright>
<tags>open-systems-pharmacology</tags>
Expand Down
2 changes: 1 addition & 1 deletion src/OSPSuite.Infrastructure/OSPSuite.Infrastructure.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<owners>Open-Systems-Pharmacology</owners>
<projectUrl>https://github.com/Open-Systems-Pharmacology/$id$</projectUrl>
<licenseUrl>https://github.com/Open-Systems-Pharmacology/$id$/blob/master/LICENSE</licenseUrl>
<iconUrl>https://github.com/Open-Systems-Pharmacology/Suite/blob/master/logo.png</iconUrl>
<iconUrl>https://raw.githubusercontent.com/Open-Systems-Pharmacology/Suite/master/logo.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<copyright>Copyright © 2017 - Open Systems Pharmacology Community</copyright>
<tags>open-systems-pharmacology</tags>
Expand Down
2 changes: 1 addition & 1 deletion src/OSPSuite.Presentation/OSPSuite.Presentation.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<owners>Open-Systems-Pharmacology</owners>
<projectUrl>https://github.com/Open-Systems-Pharmacology/$id$</projectUrl>
<licenseUrl>https://github.com/Open-Systems-Pharmacology/$id$/blob/master/LICENSE</licenseUrl>
<iconUrl>https://github.com/Open-Systems-Pharmacology/Suite/blob/master/logo.png</iconUrl>
<iconUrl>https://raw.githubusercontent.com/Open-Systems-Pharmacology/Suite/master/logo.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<copyright>Copyright © 2017 - Open Systems Pharmacology Community</copyright>
<tags>open-systems-pharmacology</tags>
Expand Down
2 changes: 1 addition & 1 deletion src/OSPSuite.UI/OSPSuite.UI.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<owners>Open-Systems-Pharmacology</owners>
<projectUrl>https://github.com/Open-Systems-Pharmacology/$id$</projectUrl>
<licenseUrl>https://github.com/Open-Systems-Pharmacology/$id$/blob/master/LICENSE</licenseUrl>
<iconUrl>https://github.com/Open-Systems-Pharmacology/Suite/blob/master/logo.png</iconUrl>
<iconUrl>https://raw.githubusercontent.com/Open-Systems-Pharmacology/Suite/master/logo.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<copyright>Copyright © 2017 - Open Systems Pharmacology Community</copyright>
<tags>open-systems-pharmacology</tags>
Expand Down
9 changes: 9 additions & 0 deletions src/OSPSuite.UI/UIRegister.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using DevExpress.XtraRichEdit;
using Northwoods.Go;
using OSPSuite.Core.Serialization.Diagram;
using OSPSuite.Presentation.Services;
using OSPSuite.Presentation.Views;
Expand Down Expand Up @@ -37,5 +38,13 @@ public override void RegisterInContainer(IContainer container)
//Register open types
container.Register(typeof(PathElementsBinder<>), typeof(PathElementsBinder<>));
}

/// <summary>
/// This needs to be set as early as possible (before GoDiagram component is being instantiated)
/// </summary>
public static string GoDiagramKey
{
set { GoView.LicenseKey = value; }
}
}
}
5 changes: 2 additions & 3 deletions tests/OSPSuite.Starter/TestProgram.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using OSPSuite.Utility.Container;
using OSPSuite.Core.Domain;
using OSPSuite.Core.Domain.Data;
using OSPSuite.Starter.Bootstrapping;
using OSPSuite.Starter.Presenters;
using OSPSuite.Utility.Container;

namespace OSPSuite.Starter
{
Expand All @@ -32,7 +32,6 @@ public static IList<string> DisplayQuantityPathDefinition(DataColumn column)
return path;
}


public static string IdentificationKeyDefintion(DataColumn col)
{
const int quantityPathLevelForIdentification = 1;
Expand Down Expand Up @@ -68,7 +67,7 @@ public static void Main()
{
ApplicationStartup.Initialize();

Application.Run(IoC.Resolve<ITestPresenter>().View as Form);
Application.Run(IoC.Resolve<ITestPresenter>().View as Form);
}
}

Expand Down

0 comments on commit f75c2b2

Please sign in to comment.