public PromptOption(string label, ConsoleColor?color = null, bool isDefault = false, OptionRenderStyle renderStyle = OptionRenderStyle.Indexable) { Label = label; Color = color ?? RenderOptions.OptionColor; IsDefault = isDefault; Style = renderStyle; }
public void Add(string label, ConsoleColor?color = null, bool isDefault = false, OptionRenderStyle renderStyle = OptionRenderStyle.Indexable) { if (color == null) { color = RenderOptions.OptionColor; } _options.Add(new PromptOption(_options.Count, label, (ConsoleColor)color, isDefault, renderStyle)); }
public PromptOption(int index, string label, ConsoleColor color, bool isDefault = false, OptionRenderStyle renderStyle = OptionRenderStyle.Indexable) : this(label, color, isDefault, renderStyle) { Index = index; }