diff --git a/Terminal.Gui/Views/Menu/MenuBar.cs b/Terminal.Gui/Views/Menu/MenuBar.cs
index 8a89efdfd..0a75e2b32 100644
--- a/Terminal.Gui/Views/Menu/MenuBar.cs
+++ b/Terminal.Gui/Views/Menu/MenuBar.cs
@@ -556,7 +556,7 @@ public class MenuBar : View
mi = parent.Children?.Length > 0 ? parent.Children [_openMenu._currentChild] : null;
}
- MenuOpened?.Invoke (this, new MenuOpenedEventArgs (parent, mi));
+ MenuOpened?.Invoke (this, new (parent, mi));
}
/// Virtual method that will invoke the event if it's defined.
@@ -829,10 +829,10 @@ public class MenuBar : View
View sv = SuperView is null ? Application.Current : SuperView;
Point boundsOffset = sv.GetBoundsOffset ();
- return new Point (
- superViewFrame.X - sv.Frame.X - boundsOffset.X,
- superViewFrame.Y - sv.Frame.Y - boundsOffset.Y
- );
+ return new (
+ superViewFrame.X - sv.Frame.X - boundsOffset.X,
+ superViewFrame.Y - sv.Frame.Y - boundsOffset.Y
+ );
}
///
@@ -846,7 +846,7 @@ public class MenuBar : View
Rectangle currentFrame = Application.Current.Frame;
Point boundsOffset = Application.Top.GetBoundsOffset ();
- return new Point (screen.X - currentFrame.X - boundsOffset.X, screen.Y - currentFrame.Y - boundsOffset.Y);
+ return new (screen.X - currentFrame.X - boundsOffset.X, screen.Y - currentFrame.Y - boundsOffset.Y);
}
internal void NextMenu (bool isSubMenu = false, bool ignoreUseSubMenusSingleFrame = false)
@@ -995,7 +995,7 @@ public class MenuBar : View
locationOffset.Y += SuperView.Border.Thickness.Top;
}
- _openMenu = new Menu
+ _openMenu = new()
{
Host = this,
X = Frame.X + pos + locationOffset.X,
@@ -1014,7 +1014,7 @@ public class MenuBar : View
// Opens a submenu next to another submenu (openSubMenu)
if (_openSubMenu is null)
{
- _openSubMenu = new List