mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-02 10:07:15 +02:00
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
33 lines
780 B
C#
33 lines
780 B
C#
using System.Collections.Generic;
|
|
|
|
namespace Robust.Client.UserInterface
|
|
{
|
|
public sealed class FileDialogFilters
|
|
{
|
|
public FileDialogFilters(IReadOnlyList<Group> groups)
|
|
{
|
|
Groups = groups;
|
|
}
|
|
|
|
public FileDialogFilters(params Group[] groups) : this((IReadOnlyList<Group>) groups)
|
|
{
|
|
}
|
|
|
|
public IReadOnlyList<Group> Groups { get; }
|
|
|
|
public sealed class Group
|
|
{
|
|
public Group(IReadOnlyList<string> extensions)
|
|
{
|
|
Extensions = extensions;
|
|
}
|
|
|
|
public Group(params string[] extensions) : this((IReadOnlyList<string>) extensions)
|
|
{
|
|
}
|
|
|
|
public IReadOnlyList<string> Extensions { get; }
|
|
}
|
|
}
|
|
}
|