public CharacteristicsTableViewDataSource (HMService service, UITableView tableView, ICharacteristicCellDelegate @delegate, bool showsFavorites = false, bool allowsAllWrites = false) { Service = service; Delegate = @delegate; this.showsFavorites = showsFavorites; this.allowsAllWrites = allowsAllWrites; tableView.DataSource = this; tableView.RowHeight = UITableView.AutomaticDimension; tableView.EstimatedRowHeight = 50; RegisterReuseIdentifiers (tableView); }
public CharacteristicsTableViewDataSource(HMService service, UITableView tableView, ICharacteristicCellDelegate @delegate, bool showsFavorites = false, bool allowsAllWrites = false) { Service = service; Delegate = @delegate; this.showsFavorites = showsFavorites; this.allowsAllWrites = allowsAllWrites; tableView.DataSource = this; tableView.RowHeight = UITableView.AutomaticDimension; tableView.EstimatedRowHeight = 50; RegisterReuseIdentifiers(tableView); }