public void ConformToRecord(BaseNotification theNotif, NotificationsTableSource theSource)
        {
            parentSource = theSource;
            linkedNotification = theNotif;
            NotifLabel.Text = theNotif.detail;
            /*
            PinBtn.TouchUpInside -= HandleClick;
            linkedDate = theDate;
            PinBtn.Hidden = false;
            SelfieView.Hidden = false;
            DateTimeLabel.Hidden = false;
            DateTimeLabel.Text = linkedDate.starttime.ToString ("g");
            DateTitleLabel.Text = linkedDate.title;
            if (!String.IsNullOrEmpty (linkedDate.selfie))
                SelfieView.SetImage (new NSUrl (linkedDate.selfie));
            else
                SelfieView.Image = UIImage.FromBundle ("LaunchIcon");

            if (theDate.applied) {
                PinBtn.SetTitle ("interested", UIControlState.Normal);
            } else if (theDate.pinned) {
                PinBtn.SetTitle ("unpin", UIControlState.Normal);
            } else {
                PinBtn.SetTitle ("pin", UIControlState.Normal);
            }
            PinBtn.TouchUpInside += HandleClick;
            */
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad ();
            // Perform any additional setup after loading the view, typically from a nib.

            this.ResultList.RegisterNibForCellReuse (UINib.FromName (NotificationCell.Key, NSBundle.MainBundle), NotificationCell.Key);
            dataSource = new NotificationsTableSource ();
            ResultList.Source = dataSource;
            ResultList.RowHeight = 64;
            LettuceServer.Instance.GetNotificationsForUser((notifyList) => {
                InvokeOnMainThread(() => {
                    if (notifyList != null) {
                        dataSource.SetNotificationList(notifyList);
                        ResultList.ReloadData();
                        this.NotifyHeader.Text = String.Format("NotificationsHeader_String".Localize(), notifyList.Count);
                        refreshNeeded = false;
                    } else {
                        this.NotifyHeader.Text = String.Format("NotificationsHeader_String".Localize(), 0);
                    }
                });
            });
        }