Skip to content

Instantly share code, notes, and snippets.

@brunoss brunoss/testaRadios.cs
Last active May 19, 2016

What would you like to do?
public static class Parse{
public static int? ParseInt(this string num){
int val;
if (int.TryParse(num, out val)) {
return val;
return null;
_Igual.Tag = (Func<bool>)() => _TextValPalite.Text.Parse() == _ValSorteado.Text.Parse();
_Maior.Tag = (Func<bool>)() => _TextValPalite.Text.Parse() > _ValSorteado.Text.Parse();
_Menor.Tag = (Func<bool>)() => _TextValPalite.Text.Parse() < _ValSorteado.Text.Parse();
var radios = new[]{_Igual, _Maior, _Menor};
for(int i = 0; i < radios.Length; ++i){
var testa = radios[i].Tag as Func<bool>;
_Acerto.Text = Convert.ToString(_adicionar);
_Errou.Text = Convert.ToString(_retirar);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.