mirror of
https://github.com/riegera2412/UVtools.git
synced 2026-08-01 21:32:18 +02:00
WPF progress
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user