mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-07-10 18:58:19 +00:00
ElectronNET.API: Move API code to subfolder
This commit is contained in:
16
src/ElectronNET.API/API/QuitEventArgs.cs
Normal file
16
src/ElectronNET.API/API/QuitEventArgs.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace ElectronNET.API
|
||||
{
|
||||
/// <summary>
|
||||
/// Event arguments for the <see cref="App.BeforeQuit"/> / <see cref="App.WillQuit"/> event.
|
||||
/// </summary>
|
||||
public sealed class QuitEventArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// Will prevent the default behaviour, which is terminating the application.
|
||||
/// </summary>
|
||||
public void PreventDefault()
|
||||
{
|
||||
Electron.App.PreventQuit();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user