mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-02 18:17:09 +02:00
* Removed the Interfaces folder. * All objects inside the GameObjects subfolders are now in the GameObjects namespace. * Added a Resharper DotSettings file to mark the GameObjects subfolders as not providing namespaces. * Simplified Robust.client.Graphics namespace. * Automated remove redundant using statements.
33 lines
766 B
C#
33 lines
766 B
C#
using System.Collections.Generic;
|
|
|
|
namespace Robust.Client.UserInterface
|
|
{
|
|
public class FileDialogFilters
|
|
{
|
|
public FileDialogFilters(IReadOnlyList<Group> groups)
|
|
{
|
|
Groups = groups;
|
|
}
|
|
|
|
public FileDialogFilters(params Group[] groups) : this((IReadOnlyList<Group>) groups)
|
|
{
|
|
}
|
|
|
|
public IReadOnlyList<Group> Groups { get; }
|
|
|
|
public class Group
|
|
{
|
|
public Group(IReadOnlyList<string> extensions)
|
|
{
|
|
Extensions = extensions;
|
|
}
|
|
|
|
public Group(params string[] extensions) : this((IReadOnlyList<string>) extensions)
|
|
{
|
|
}
|
|
|
|
public IReadOnlyList<string> Extensions { get; }
|
|
}
|
|
}
|
|
}
|