Created
January 28, 2014 10:52
-
-
Save wayne-o/8665577 to your computer and use it in GitHub Desktop.
DebugRadioElement
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DebugRadioElement : RadioElement { | |
Action<DebugRadioElement, EventArgs> onCLick; | |
public DebugRadioElement (string s, Action<DebugRadioElement, EventArgs> onCLick) : base (s) { | |
this.onCLick = onCLick; | |
} | |
public override void Selected (DialogViewController dvc, UITableView tableView, NSIndexPath path) | |
{ | |
base.Selected (dvc, tableView, path); | |
var selected = onCLick; | |
if (selected != null) | |
selected (this, EventArgs.Empty); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment