Ejemplo n.º 1
0
        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;
            */
        }
Ejemplo n.º 2
0
        public static BaseNotification CreateSample()
        {
            BaseNotification newGuy = new BaseNotification();
            newGuy.date = DateTime.Now;
            newGuy.id = 1;
            newGuy.detail = "Hey you were notified of something";
            newGuy.type = 2;
            newGuy.read = false;

            return newGuy;
        }
Ejemplo n.º 3
0
        public void ConformToEmpty()
        {
            linkedNotification = null;
            NotifLabel.Text = "No Notifications.  Get more active!";
            /*
            PinBtn.Hidden = true;
            SelfieView.Hidden = true;
            DateTimeLabel.Hidden = true;
            if (section == 0)
                DateTitleLabel.Text = "NoAppliedDatesCell_String".Localize();
            else if (section == 1)
                DateTitleLabel.Text = "NoPinnedDatesCell_String".Localize();
            else
                DateTitleLabel.Text = "NoMatchingDatesCell_String".Localize();

            PinBtn.TouchUpInside -= HandleClick;
            */
        }