namespace Terminal.Gui; /// for transition events. public class WizardButtonEventArgs : EventArgs { /// Initializes a new instance of public WizardButtonEventArgs () { Cancel = false; } /// Set to true to cancel the transition to the next step. public bool Cancel { get; set; } } /// for events. public class StepChangeEventArgs : EventArgs { /// Initializes a new instance of /// The current . /// The new . public StepChangeEventArgs (WizardStep oldStep, WizardStep newStep) { OldStep = oldStep; NewStep = newStep; Cancel = false; } /// Event handlers can set to true before returning to cancel the step transition. public bool Cancel { get; set; } /// The the is changing to or has changed to. public WizardStep NewStep { get; } /// The current (or previous) . public WizardStep OldStep { get; } }