mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-07 23:43:19 +02:00
Modify snippet in a WPF getting started (#1127)
This commit is contained in:
+3
@@ -28,7 +28,10 @@ namespace Names
|
||||
private void ButtonAddName_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (!string.IsNullOrWhiteSpace(txtName.Text) && !lstNames.Items.Contains(txtName.Text))
|
||||
{
|
||||
lstNames.Items.Add(txtName.Text);
|
||||
txtName.Clear();
|
||||
}
|
||||
}
|
||||
//</FinalCode>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user