public void GetActivitiesByOpportunity(Opportunity selectedOpportunity, Action<IEnumerable<Activity>> callback)
 {
     this.LoadQuery<Activity>(this.Context.GetActivitiesByOpportunityIDQuery(selectedOpportunity.OpportunityID), callback);
 }
 public override void CopyFrom(IAppointment other)
 {
     base.CopyFrom(other);
     CustomAppointment appointment = other as CustomAppointment;
     if (appointment != null)
     {
         this.Opportunity = appointment.Opportunity;
         this.Activity.UpdateAllProperties(appointment.Activity);
     }
 }
 private bool FilterOpportunity(Opportunity entity)
 {
     return (entity.OpportunityID == this.OpportunityID);
 }
 private bool FilterOpportunity(Opportunity entity)
 {
     return (entity.ProductID == this.ProductID);
 }
 private bool FilterOpportunity(Opportunity entity)
 {
     return (entity.ContactID == this.ContactID);
 }
 private void DetachOpportunity(Opportunity entity)
 {
     entity.Company = null;
 }
 private void AttachOpportunity(Opportunity entity)
 {
     entity.Company = this;
 }