SIGN IN SIGN UP
cefsharp / CefSharp UNCLAIMED

.NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework

0 0 22 C#
2016-01-11 14:11:30 +10:00
// Copyright © 2010-2016 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System.Collections.Generic;
using System.IO;
namespace CefSharp.Example
{
2014-06-03 00:25:37 +10:00
public class TempFileDialogHandler : IDialogHandler
{
public bool OnFileDialog(IWebBrowser browserControl, IBrowser browser, CefFileDialogMode mode, string title, string defaultFilePath, List<string> acceptFilters, int selectedAcceptFilter, IFileDialogCallback callback)
2014-06-03 00:25:37 +10:00
{
2015-06-01 16:27:42 +10:00
callback.Continue(selectedAcceptFilter, new List<string> { Path.GetRandomFileName() });
2014-06-03 00:25:37 +10:00
return true;
}
}
}