WPF progress

This commit is contained in:
Tiago Conceição
2020-09-22 04:29:11 +01:00
parent 0ce27a1f9c
commit 732d27e647
18 changed files with 644 additions and 90 deletions
+15 -1
View File
@@ -6,6 +6,8 @@
* of this license document, but changing it is not allowed.
*/
using System;
using System.Diagnostics;
using System.Globalization;
using System.Threading;
using Avalonia;
@@ -49,7 +51,19 @@ namespace UVtools.WPF
}
#region Utilities
public static void NewInstance(string filePath)
{
try
{
var info = new ProcessStartInfo("UVtools.exe", $"\"{filePath}\"");
Process.Start(info)?.Dispose();
}
catch (Exception e)
{
Debug.WriteLine(e);
}
}
#endregion
}