AddFileNameFilterFromAssociations for a single Association

This commit is contained in:
Michael Becker 2019-11-20 00:15:51 -05:00
parent 8c0a110000
commit d22f198d34
No known key found for this signature in database
GPG Key ID: 389DFF5D73781A12

View File

@ -26,6 +26,10 @@ namespace UniversalEditor.UserInterface
{
public static class ExtensionMethods
{
public static void AddFileNameFilterFromAssociations(this FileDialog dialog, string title, Association association)
{
AddFileNameFilterFromAssociations(dialog, title, new Association[] { association });
}
public static void AddFileNameFilterFromAssociations(this FileDialog dialog, string title, Association[] associations)
{
StringBuilder sb = new StringBuilder();