FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
CefSharp/CefSharp.Example/TempFileDialogHandler.cs at cefsharp/45 · cefsharp/CefSharp · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
cefsharp
/
CefSharp
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
2.9k
Star
10.2k
Code
Issues
61
Pull requests
13
Discussions
Actions
Wiki
Security and quality
9
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
CefSharp
/
CefSharp.Example
/
TempFileDialogHandler.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
19 lines (16 loc) · 711 Bytes
Breadcrumbs
CefSharp
/
CefSharp.Example
/
TempFileDialogHandler.cs
Copy path
File metadata and controls
19 lines (16 loc) · 711 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright © 2010-2015 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
{
public
class
TempFileDialogHandler
:
IDialogHandler
{
public
bool
OnFileDialog
(
IWebBrowser
browserControl
,
IBrowser
browser
,
CefFileDialogMode
mode
,
string
title
,
string
defaultFilePath
,
List
<
string
>
acceptFilters
,
int
selectedAcceptFilter
,
IFileDialogCallback
callback
)
{
callback
.
Continue
(
selectedAcceptFilter
,
new
List
<
string
>
{
Path
.
GetRandomFileName
(
)
}
)
;
return
true
;
}
}
}
Back
|
FazBrowse Home
|
New Git URL