NativeFileDialogSharp/NativeFileDialogSharpSandbox/Program.cs

14 lines
465 B
C#
Raw Normal View History

2021-12-26 20:04:24 +00:00
// See https://aka.ms/new-console-template for more information
2021-12-26 21:22:51 +00:00
using System;
using NativeFileDialogSharp;
2021-12-26 20:04:24 +00:00
using NativeFileDialogSharp.Native;
var result = Dialog.FileOpenMultiple();
Console.WriteLine($"Path: {result.Path}, IsError {result.IsError}, IsOk {result.IsOk}, IsCancelled {result.IsCancelled}, ErrorMessage {result.ErrorMessage}");
if (result.Paths != null)
{
Console.WriteLine("Paths");
Console.WriteLine(string.Join("\n", result.Paths));
}