public override void Selected (DialogViewController dvc, UITableView tableView, NSIndexPath indexPath)
{
RootElement root = (RootElement) Parent.Parent;
UITableViewCell cell = null;
if (RadioIdx != root.Value){
var indexForOldItem = root.PathForRadio (root.Value);
if (indexForOldItem!=null){
cell = tableView.CellAt (indexForOldItem);
if (cell != null)
cell.Accessory = UITableViewCellAccessory.None;
}
cell = tableView.CellAt (indexPath);
if (cell != null)
cell.Accessory = UITableViewCellAccessory.Checkmark;
root.Value = RadioIdx;
}
base.Selected (dvc, tableView, indexPath);
if (PopOnSelect)
dvc.NavigationController.PopViewControllerAnimated(true);
}
}