mirror of
https://github.com/AssetRipper/NativeFileDialogs.NET.git
synced 2026-11-14 06:28:08 -10:00
25 lines
639 B
C#
25 lines
639 B
C#
// Copyright (c) Speykious
|
|
// This file is part of NativeFileDialogs.NET.
|
|
// NativeFileDialogs.NET is licensed under the Zlib License. See LICENSE for details.
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using NativeFileDialogs.Net;
|
|
|
|
NfdStatus result = Nfd.OpenDialogMultiple(out string[]? outPaths, new Dictionary<string, string>()
|
|
{
|
|
{ "Source code", "c,cpp,cc" },
|
|
{ "Headers", "h,hpp" },
|
|
});
|
|
|
|
if (result == NfdStatus.Ok && outPaths is string[] paths)
|
|
{
|
|
Console.WriteLine("Success!");
|
|
foreach (string path in paths)
|
|
Console.WriteLine($"- {path}");
|
|
}
|
|
else
|
|
{
|
|
Console.WriteLine("User pressed Cancel.");
|
|
}
|