Add MailTo
This commit is contained in:
@ -7,6 +7,7 @@ using System.Windows.Media;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.IO;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace WGneu {
|
||||
public static class Utils {
|
||||
@ -56,6 +57,13 @@ namespace WGneu {
|
||||
});
|
||||
}
|
||||
|
||||
public static void MailTo(string emailAddress) {
|
||||
Process.Start(new ProcessStartInfo() {
|
||||
FileName = $"mailto:{emailAddress}",
|
||||
UseShellExecute = true,
|
||||
});
|
||||
}
|
||||
|
||||
public sealed class TemporaryFile : IDisposable {
|
||||
private int Usages = 0;
|
||||
public string FilePath { get; private set; }
|
||||
|
Reference in New Issue
Block a user