namespace RodionovLibrary.VisualComponents { public partial class ListBoxControl : UserControl { private string? _template; private char? _fromChar; private char? _toChar; public int SelectedIndex { get { return listBox.SelectedIndex; } set { listBox.SelectedIndex = value; } } public ListBoxControl() { InitializeComponent(); } public void SetParams(string template, char fromChar, char toChar) { _template = template; _fromChar = fromChar; _toChar = toChar; } } }