21 lines
511 B
C#
21 lines
511 B
C#
namespace Pf2e.WPF.EntityViewer.Component;
|
|
|
|
/// <summary>
|
|
/// Логика взаимодействия для DbEntityListControl.xaml
|
|
/// </summary>
|
|
internal partial class EntityListControl : System.Windows.Controls.UserControl
|
|
{
|
|
public EntityListControl()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void TextBox_PreviewTextInput(
|
|
object sender,
|
|
System.Windows.Input.TextCompositionEventArgs e
|
|
)
|
|
{
|
|
e.Handled = !int.TryParse(e.Text, out int result);
|
|
}
|
|
}
|