mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-04-22 05:57:30 +00:00
Refactor
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace DiscordChatExporter.Gui.Internal
|
||||
{
|
||||
public enum PartitionFormat
|
||||
{
|
||||
MessageCount,
|
||||
FileSize,
|
||||
}
|
||||
|
||||
public static class PartitionFormatExtensions
|
||||
{
|
||||
public static string GetDisplayName(this PartitionFormat format) => format switch
|
||||
{
|
||||
PartitionFormat.MessageCount => "Message count",
|
||||
PartitionFormat.FileSize => "File size (MB)",
|
||||
_ => throw new ArgumentOutOfRangeException(nameof(format))
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user