Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 6bdcb217 authored by Michael KRISPER's avatar Michael KRISPER
Browse files

Changed AppPath to parent directory

parent 3b2ffb02
No related branches found
No related tags found
No related merge requests found
...@@ -62,10 +62,10 @@ namespace HashingTool ...@@ -62,10 +62,10 @@ namespace HashingTool
private void Help_OnMouseLeftButtonUp(object sender, MouseButtonEventArgs e) private void Help_OnMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
{ {
var myAppPath = AppDomain.CurrentDomain.BaseDirectory; var myAppPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "..");
if (File.Exists(myAppPath + @"User Manual\HashingToolHelp.html")) { if (File.Exists(myAppPath + @"User Manual\HashingToolHelp.html")) {
var defaultBrowserPath = BrowserHelper.GetDefaultBrowserPath(); var defaultBrowserPath = BrowserHelper.GetDefaultBrowserPath();
Process.Start(defaultBrowserPath, $"\"file://{myAppPath}{@"User Manual\HashingToolHelp.html"}\""); Process.Start(defaultBrowserPath, $"\"file://{Path.Combine(myAppPath, @"User Manual\HashingToolHelp.html")}\"");
} else { } else {
MessageBox.Show("User Manual not found!", "Error", MessageBoxButton.OK, MessageBoxImage.Error); MessageBox.Show("User Manual not found!", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
} }
......
...@@ -45,7 +45,7 @@ Namespace My ...@@ -45,7 +45,7 @@ Namespace My
Dim i As Integer Dim i As Integer
'Paths 'Paths
MyAppPath = Application.Info.DirectoryPath MyAppPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "..")
ReadInstallMode() ReadInstallMode()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment