Skip to content

Instantly share code, notes, and snippets.

@wayne-o
Created January 28, 2014 10:52
Show Gist options
  • Save wayne-o/8665577 to your computer and use it in GitHub Desktop.
Save wayne-o/8665577 to your computer and use it in GitHub Desktop.
DebugRadioElement
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