public NotificationsTableCell(List <NotificationModel> _notes, int _index, nfloat _cellHt, NotificationsViewController _nVC) { notes = _notes; index = _index; cellHt = _cellHt; nVC = _nVC; date = new UILabel() { BackgroundColor = UIColor.Clear, Font = UIFont.FromName(Util.FontMain, 16), TextColor = Util.Grey, TextAlignment = UITextAlignment.Left }; message = new UILabel() { TextColor = UIColor.Black, Font = UIFont.FromName(Util.FontMain, 16), Lines = 2, TextAlignment = UITextAlignment.Left, BackgroundColor = UIColor.Clear }; icon = new UIImageView() { Image = UIImage.FromFile("Images/whitecheck.png").ImageWithRenderingMode(UIImageRenderingMode.AlwaysTemplate), TintColor = Util.Grey, ContentMode = UIViewContentMode.ScaleAspectFill }; ContentView.BackgroundColor = UIColor.FromRGB(223, 223, 223); ContentView.AddGestureRecognizer(Tap(index)); ContentView.Add(date); ContentView.Add(message); ContentView.Add(icon); }
public NotificationsTableSource(List <NotificationModel> _notes, string _id, NotificationsViewController _nVC) { notes = _notes; id = _id; nVC = _nVC; }