From 50356cf14a7fba86f278dbf00a322dd1bab9f027 Mon Sep 17 00:00:00 2001 From: Tig Date: Sun, 30 Jun 2024 12:53:31 -0700 Subject: [PATCH] Re-removed class --- Terminal.Gui/View/StateEventArgs.cs | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 Terminal.Gui/View/StateEventArgs.cs 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; } -}