PIbd-31_Rodionov.I.A._COP_28/COP/RodionovLibrary/VisualComponents/ListBoxControl.cs

36 lines
734 B
C#
Raw Normal View History

2024-09-05 23:36:10 +04:00
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;
}
}
}