mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
15 lines
434 B
C#
15 lines
434 B
C#
using System.Collections.Generic;
|
|
using System.IO;
|
|
|
|
namespace CefSharp.Example
|
|
{
|
|
public class TempFileDialogHandler : IDialogHandler
|
|
{
|
|
public bool OnFileDialog(IWebBrowser browser, CefFileDialogMode mode, string title, string defaultFileName, List<string> acceptTypes, out List<string> result)
|
|
{
|
|
result = new List<string> { Path.GetRandomFileName() };
|
|
return true;
|
|
}
|
|
}
|
|
}
|