Skip to content

Commit bc95637

Browse files
committed
fixed warning2
1 parent 7b1aa43 commit bc95637

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Terminal.Gui/Views/Bar.cs

+2
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,13 @@ public Orientation Orientation
109109
set => _orientationHelper.Orientation = value;
110110
}
111111

112+
#pragma warning disable CS0067 // The event is never used
112113
/// <inheritdoc/>
113114
public event EventHandler<CancelEventArgs<Orientation>>? OrientationChanging;
114115

115116
/// <inheritdoc/>
116117
public event EventHandler<EventArgs<Orientation>>? OrientationChanged;
118+
#pragma warning restore CS0067 // The event is never used
117119

118120
/// <summary>Called when <see cref="Orientation"/> has changed.</summary>
119121
/// <param name="newOrientation"></param>

Terminal.Gui/Views/Line.cs

+2
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ public Orientation Orientation
3333
set => _orientationHelper.Orientation = value;
3434
}
3535

36+
#pragma warning disable CS0067 // The event is never used
3637
/// <inheritdoc/>
3738
public event EventHandler<CancelEventArgs<Orientation>> OrientationChanging;
3839

3940
/// <inheritdoc/>
4041
public event EventHandler<EventArgs<Orientation>> OrientationChanged;
42+
#pragma warning restore CS0067 // The event is never used
4143

4244
/// <summary>Called when <see cref="Orientation"/> has changed.</summary>
4345
/// <param name="newOrientation"></param>

0 commit comments

Comments
 (0)