public ConfigMenu(ConfigParam[] configParams, Size fieldSize, Padding p) { this.ConfigParams = configParams; configMenu = new SelectionMenu( configParams.Select(x => x.ToString()).ToArray(), fieldSize, defaultSelected: 0, p ); }
public override void OnWindowSizeChanged(Size fieldSize) { if (keyHandlers.Contains(sm)) { keyHandlers.Remove(sm); } sm = new SelectionMenu(variants, fieldSize, defaultSelected: 0, p); sm.IsFocused = true; keyHandlers.Add(sm); }