I have a ListView, that contains 22 CheckBoxes. I should to check all of them, and if checkBox is checked it returns 1, otherwise 0.
< ListView x: Name = "CheckBoxList" >
< CheckBox x: Name = "nr1" />
...
< CheckBox x: Name = "nr22" />
</ListView>
And here I send thouse 1 or 0
dynamic sendMessage = MyApi.Api.sendMessage( //for example 1, 0, 1, 1, 0, 0 etc.//);
How to make it automatically? Because all I know is how to check it manually (if - else for every control), but it isn't good solution.
Aucun commentaire:
Enregistrer un commentaire