using ElectronNET.API.Entities;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using System.Collections.Generic;
using ElectronNET.API.Extensions;
using System.Linq;
using System.Collections.ObjectModel;
namespace ElectronNET.API
{
///
/// Create native application menus and context menus.
///
public sealed class Menu
{
private static Menu _menu;
private static object _syncRoot = new object();
internal Menu() { }
internal static Menu Instance
{
get
{
if (_menu == null)
{
lock (_syncRoot)
{
if(_menu == null)
{
_menu = new Menu();
}
}
}
return _menu;
}
}
///
/// Gets the menu items.
///
///
/// The menu items.
///
public IReadOnlyCollection