diff --git a/Terminal.Gui/View/StateEventArgs.cs b/Terminal.Gui/View/StateEventArgs.cs deleted file mode 100644 index 10cb47886..000000000 --- a/Terminal.Gui/View/StateEventArgs.cs +++ /dev/null @@ -1,27 +0,0 @@ -#nullable enable -using System.ComponentModel; - -namespace Terminal.Gui; - -/// for events that convey state changes to a class. -/// -/// Events that use this class can be cancellable. The property should be set to -/// to prevent the state change from occurring. -/// -public class StateEventArgs : CancelEventArgs -{ - /// Creates a new instance of the class. - /// - /// - public StateEventArgs (T oldValue, T newValue) - { - OldValue = oldValue; - NewValue = newValue; - } - - /// The new state - public T NewValue { get; set; } - - /// The previous state - public T OldValue { get; } -}