public CalTableCell(List <CalWorkoutModel> _workouts, nfloat _cellHt, int _index, CalendarViewController _calVC) : base(UITableViewCellStyle.Value1, Key) { workouts = _workouts; cellHt = _cellHt; index = _index; calVC = _calVC; name = MakeLabel(); weightReps = MakeLabel(); space = new UILabel() { BackgroundColor = Util.BackgroundGrey, Text = "" }; openNote = new UIImageView(UIImage.FromFile("Images/add.png")) { TintColor = UIColor.Black, ContentMode = UIViewContentMode.ScaleAspectFill }; UITapGestureRecognizer tapPlus = new UITapGestureRecognizer(); tapPlus.AddTarget(() => { OnSelect(index); }); openNote.UserInteractionEnabled = true; openNote.AddGestureRecognizer(tapPlus); ContentView.Add(name); ContentView.Add(weightReps); ContentView.Add(space); ContentView.Add(openNote); }
public CalTableSource(List <CalWorkoutModel> _workouts, string _id, CalendarViewController _calVC) { workouts = _workouts; id = _id; calVC = _calVC; }