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