mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-06-02 23:59:50 -04:00
C#10ify
This commit is contained in:
parent
8e7baee8a5
commit
880f400e2c
148 changed files with 14241 additions and 14396 deletions
|
@ -1,9 +1,8 @@
|
|||
using System.Windows.Media;
|
||||
|
||||
namespace DiscordChatExporter.Gui.Utils
|
||||
namespace DiscordChatExporter.Gui.Utils;
|
||||
|
||||
internal static class MediaColor
|
||||
{
|
||||
internal static class MediaColor
|
||||
{
|
||||
public static Color FromHex(string hex) => (Color) ColorConverter.ConvertFromString(hex);
|
||||
}
|
||||
public static Color FromHex(string hex) => (Color) ColorConverter.ConvertFromString(hex);
|
||||
}
|
|
@ -1,17 +1,16 @@
|
|||
using System.Diagnostics;
|
||||
|
||||
namespace DiscordChatExporter.Gui.Utils
|
||||
{
|
||||
internal static class ProcessEx
|
||||
{
|
||||
public static void StartShellExecute(string path)
|
||||
{
|
||||
var startInfo = new ProcessStartInfo(path)
|
||||
{
|
||||
UseShellExecute = true
|
||||
};
|
||||
namespace DiscordChatExporter.Gui.Utils;
|
||||
|
||||
using (Process.Start(startInfo)) {}
|
||||
}
|
||||
internal static class ProcessEx
|
||||
{
|
||||
public static void StartShellExecute(string path)
|
||||
{
|
||||
var startInfo = new ProcessStartInfo(path)
|
||||
{
|
||||
UseShellExecute = true
|
||||
};
|
||||
|
||||
using (Process.Start(startInfo)) {}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue