Fix and normalize whitespace

This commit is contained in:
softworkz
2025-11-09 03:50:24 +01:00
parent c1e7b84ec6
commit 84b3c59353
50 changed files with 429 additions and 231 deletions

View File

@@ -9,6 +9,7 @@ using System.Linq;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
using ElectronNET.Common;
// ReSharper disable InconsistentNaming
namespace ElectronNET.API;
@@ -96,8 +97,8 @@ public class BrowserWindow : ApiBase
/// </summary>
public event Action OnUnresponsive
{
add => ApiEventManager.AddEvent("browserWindow-unresponsive", Id, _unresponsive, value);
remove => ApiEventManager.RemoveEvent("browserWindow-unresponsive", Id, _unresponsive, value);
add => ApiEventManager.AddEvent("browserWindow-unresponsive", Id, _unresponsive, value);
remove => ApiEventManager.RemoveEvent("browserWindow-unresponsive", Id, _unresponsive, value);
}
private event Action _unresponsive;
@@ -752,6 +753,7 @@ public class BrowserWindow : ApiBase
{
x = x - 7;
}
this.CallMethod2(x, y);
}
@@ -769,6 +771,7 @@ public class BrowserWindow : ApiBase
{
x = x - 7;
}
this.CallMethod3(x, y, animate);
}
@@ -906,7 +909,14 @@ public class BrowserWindow : ApiBase
/// <value>
/// The menu items.
/// </value>
public IReadOnlyCollection<MenuItem> MenuItems { get { return _items.AsReadOnly(); } }
public IReadOnlyCollection<MenuItem> MenuItems
{
get
{
return _items.AsReadOnly();
}
}
private List<MenuItem> _items = new List<MenuItem>();
/// <summary>
@@ -981,7 +991,14 @@ public class BrowserWindow : ApiBase
/// <value>
/// The thumbar buttons.
/// </value>
public IReadOnlyCollection<ThumbarButton> ThumbarButtons { get { return _thumbarButtons.AsReadOnly(); } }
public IReadOnlyCollection<ThumbarButton> ThumbarButtons
{
get
{
return _thumbarButtons.AsReadOnly();
}
}
private List<ThumbarButton> _thumbarButtons = new List<ThumbarButton>();
/// <summary>