mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-04-22 14:07:07 +00:00
Use CSharpier
This commit is contained in:
@@ -5,6 +5,6 @@ namespace DiscordChatExporter.Gui.Utils;
|
||||
internal static class Internationalization
|
||||
{
|
||||
public static bool Is24Hours =>
|
||||
string.IsNullOrWhiteSpace(CultureInfo.CurrentCulture.DateTimeFormat.AMDesignator) &&
|
||||
string.IsNullOrWhiteSpace(CultureInfo.CurrentCulture.DateTimeFormat.PMDesignator);
|
||||
}
|
||||
string.IsNullOrWhiteSpace(CultureInfo.CurrentCulture.DateTimeFormat.AMDesignator)
|
||||
&& string.IsNullOrWhiteSpace(CultureInfo.CurrentCulture.DateTimeFormat.PMDesignator);
|
||||
}
|
||||
|
||||
@@ -4,5 +4,5 @@ namespace DiscordChatExporter.Gui.Utils;
|
||||
|
||||
internal static class MediaColor
|
||||
{
|
||||
public static Color FromHex(string hex) => (Color) ColorConverter.ConvertFromString(hex);
|
||||
}
|
||||
public static Color FromHex(string hex) => (Color)ColorConverter.ConvertFromString(hex);
|
||||
}
|
||||
|
||||
@@ -8,13 +8,9 @@ internal static class ProcessEx
|
||||
{
|
||||
using var process = new Process
|
||||
{
|
||||
StartInfo = new ProcessStartInfo
|
||||
{
|
||||
FileName = path,
|
||||
UseShellExecute = true
|
||||
}
|
||||
StartInfo = new ProcessStartInfo { FileName = path, UseShellExecute = true }
|
||||
};
|
||||
|
||||
process.Start();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user