mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-30 17:57:57 +01:00
Fix changed event and reformat in Scenarios.
This commit is contained in:
@@ -106,7 +106,7 @@ namespace UICatalog.Scenarios {
|
||||
Add (border, fill, title);
|
||||
}
|
||||
|
||||
private void This_MouseClick (object sender, MouseEventArgs obj)
|
||||
private void This_MouseClick (object sender, MouseEventEventArgs obj)
|
||||
{
|
||||
OnMouseEvent (obj.MouseEvent);
|
||||
}
|
||||
@@ -258,7 +258,7 @@ namespace UICatalog.Scenarios {
|
||||
}
|
||||
}
|
||||
|
||||
private void Button_MouseClick (object sender, MouseEventArgs obj)
|
||||
private void Button_MouseClick (object sender, MouseEventEventArgs obj)
|
||||
{
|
||||
if (obj.MouseEvent.Flags == MouseFlags.WheeledDown) {
|
||||
scrollView.ContentOffset = new Point (scrollView.ContentOffset.X,
|
||||
|
||||
@@ -429,7 +429,7 @@ namespace UICatalog.Scenarios {
|
||||
return view;
|
||||
}
|
||||
|
||||
void LayoutCompleteHandler (object sender, View.LayoutEventArgs args)
|
||||
void LayoutCompleteHandler (object sender, LayoutEventArgs args)
|
||||
{
|
||||
UpdateTitle (_curView);
|
||||
}
|
||||
|
||||
@@ -282,7 +282,7 @@ namespace UICatalog.Scenarios {
|
||||
}
|
||||
|
||||
ContextMenu _contextMenu = new ContextMenu ();
|
||||
void Handle_MouseClick (object sender, MouseEventArgs args)
|
||||
void Handle_MouseClick (object sender, MouseEventEventArgs args)
|
||||
{
|
||||
var me = args.MouseEvent;
|
||||
if (me.Flags == MouseFlags.ReportMousePosition || (me.Flags != MouseFlags.Button1Clicked &&
|
||||
|
||||
@@ -217,7 +217,7 @@ namespace UICatalog.Scenarios {
|
||||
return sort;
|
||||
}
|
||||
|
||||
private void ShowHeaderContextMenu (DataColumn clickedCol, View.MouseEventArgs e)
|
||||
private void ShowHeaderContextMenu (DataColumn clickedCol, MouseEventEventArgs e)
|
||||
{
|
||||
var sort = GetProposedNewSortOrder (clickedCol, out var isAsc);
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ namespace UICatalog.Scenarios {
|
||||
Win.LayoutStarted += Win_LayoutStarted;
|
||||
}
|
||||
|
||||
private void Win_LayoutStarted (object sender, View.LayoutEventArgs obj)
|
||||
private void Win_LayoutStarted (object sender, LayoutEventArgs obj)
|
||||
{
|
||||
miMultiline.Checked = textViewTopLeft.Multiline;
|
||||
miWrap.Checked = textViewTopLeft.WordWrap;
|
||||
|
||||
@@ -129,7 +129,7 @@ namespace UICatalog.Scenarios {
|
||||
}
|
||||
}
|
||||
|
||||
private void TreeViewFiles_MouseClick (object sender, View.MouseEventArgs obj)
|
||||
private void TreeViewFiles_MouseClick (object sender, MouseEventEventArgs obj)
|
||||
{
|
||||
// if user right clicks
|
||||
if (obj.MouseEvent.Flags.HasFlag (MouseFlags.Button3Clicked)) {
|
||||
|
||||
Reference in New Issue
Block a user