public override void WillUseCell(CouchbaseTableSource source, UITableViewCell cell, QueryRow row) { if (backgroundColor == null) { var image = UIImage.FromBundle("item_background"); backgroundColor = UIColor.FromPatternImage(image); } cell.BackgroundColor = backgroundColor; cell.SelectionStyle = UITableViewCellSelectionStyle.Gray; cell.TextLabel.Font = UIFont.FromName("Helvetica", 18f); cell.TextLabel.BackgroundColor = UIColor.Clear; var props = (IDictionary <string, object>)row.Value; var isChecked = (bool)props[RootViewController.CheckboxPropertyName]; // props.TryGetValue (RootViewController.CheckboxPropertyName, out isChecked); cell.TextLabel.TextColor = (bool)isChecked ? UIColor.Gray : UIColor.Black; cell.ImageView.Image = UIImage.FromBundle((bool)isChecked ? "list_area___checkbox___checked" : "list_area___checkbox___unchecked"); }
public override void DeleteFailed(CouchbaseTableSource source) { return; }
public override bool DeleteRow(CouchbaseTableSource source, QueryRow row) { return(false); }
public override void UpdateFromQuery(CouchbaseTableSource source, LiveQuery query, QueryRow[] previousRows) { return; }
public override void WillUpdateFromQuery(CouchbaseTableSource source, LiveQuery query) { return; }
public override UITableViewCell CellForRowAtIndexPath(CouchbaseTableSource source, NSIndexPath indexPath) { return(null); }
public CouchtableDelegate(RootViewController controller, CouchbaseTableSource source) { parent = controller; dataSource = source; }