namespace Terminal.Gui; /// for events. public class SliderEventArgs : EventArgs { /// Initializes a new instance of /// The current options. /// Index of the option that is focused. -1 if no option has the focus. public SliderEventArgs (Dictionary> options, int focused = -1) { Options = options; Focused = focused; Cancel = false; } /// If set to true, the focus operation will be canceled, if applicable. public bool Cancel { get; set; } /// Gets or sets the index of the option that is focused. public int Focused { get; set; } /// Gets/sets whether the option is set or not. public Dictionary> Options { get; set; } }