public void OnContactClickedEvent(object obj)
 {
     var contact = (Contact)obj;
     this.contactToSelect = contact;
     if (this.Contacts != null && this.Contacts.Contains(contact))
     {
         this.SelectedContact = contact;
     }
 }
        public void GetActivitiesByContact(Contact contact, Action<IEnumerable<Activity>> callback)
        {
            if (contact == null)
            {
                callback(Enumerable.Empty<Activity>());
                return;
            }

            var contactID = contact.ContactID;
            this.LoadQuery<Activity>(this.Context.GetActivitiesByContactIDQuery(contactID), callback);
        }
 public void GetOpportunitiesByContact(Contact contact, Action<IEnumerable<Opportunity>> callback)
 {
     this.GetOpportunitiesByContactID(contact.ContactID, callback);
 }
 public void OnSelectedContactChanged(Contact contact)
 {
     this.selectedContact = contact;
     this.SelectedContactAppointments.Clear();
     this.SelectedContactActivities.Clear();
     this.DataHasPendingUpdates = true;
 }
 public void OnSelectedContactChanged(Contact contact)
 {
     this.SelectedContact = contact;
     this.DataHasPendingUpdates = true;
 }
 private bool FilterContact(Contact entity)
 {
     return (entity.ContactID == this.ContactID);
 }
 private bool FilterContacts(Contact entity)
 {
     return (entity.ImageID == this.Id);
 }