Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
tznind authored Feb 8, 2022
2 parents 3e72954 + 2494c67 commit 1c4c4cd
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: daily
- package-ecosystem: nuget
directory: "/" # Location of package manifests
schedule:
Expand Down
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Bump System.Drawing.Common from 5.0.2 to 6.0.0
- Bump fernandreu.ScintillaNET from 4.0.4 to 4.2.0


## [2.0.0] - 2021-03-27

### Fixed

- Fixed navigate to online templates not working after dotnet core update
-
### Added

- Added logging to ProcessJob for outPath in DicomRepopulatorProcessor
Expand Down
32 changes: 31 additions & 1 deletion TemplateBuilder/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
using FAnsi.Implementations.PostgreSql;
using WeifenLuo.WinFormsUI.Docking;
using DatabaseType = FAnsi.DatabaseType;
using System.Runtime.InteropServices;

namespace TemplateBuilder
{
Expand Down Expand Up @@ -373,7 +374,36 @@ private void Form1_FormClosing(object sender, FormClosingEventArgs e)

private void GoToOnlineTemplates()
{
Process.Start("https://github.com/HicServices/DicomTypeTranslation/tree/develop/Templates");
OpenBrowser("https://github.com/HicServices/DicomTypeTranslation/tree/develop/Templates");
}

public static void OpenBrowser(string url)
{
try
{
Process.Start(url);
}
catch
{
// hack because of this: https://github.com/dotnet/corefx/issues/10361
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
url = url.Replace("&", "^&");
Process.Start(new ProcessStartInfo("cmd", $"/c start {url}") { CreateNoWindow = true });
}
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
{
Process.Start("xdg-open", url);
}
else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
{
Process.Start("open", url);
}
else
{
throw;
}
}
}

private void ddDatabaseType_SelectedIndexChanged(object sender, EventArgs e)
Expand Down

0 comments on commit 1c4c4cd

Please sign in to comment.