2017-10-14 17:58:16 +02:00
|
|
|
|
namespace ElectronNET.API
|
|
|
|
|
|
{
|
|
|
|
|
|
public static class Electron
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Communicate asynchronously from the main process to renderer processes.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public static IpcMain IpcMain { get { return IpcMain.Instance; } }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Control your application's event lifecycle.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public static App App { get { return App.Instance; } }
|
2017-10-15 06:03:48 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Control your windows.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public static WindowManager WindowManager { get { return WindowManager.Instance; } }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Create native application menus and context menus.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public static Menu Menu { get { return Menu.Instance; } }
|
2017-10-15 17:03:07 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Display native system dialogs for opening and saving files, alerting, etc.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public static Dialog Dialog { get { return Dialog.Instance; } }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Create OS desktop notifications
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public static Notification Notification { get { return Notification.Instance; } }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Add icons and context menus to the system’s notification area.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public static Tray Tray { get { return Tray.Instance; } }
|
2017-10-14 17:58:16 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|