public void OnActivityClicked(object args)
 {
     var activity = (Activity)args;
     this.activityToSelect = activity;
     if (this.Activities != null && this.Activities.Contains(activity))
     {
         this.SelectedActivity = activity;
     }
 }
 public CustomAppointmentMain(Activity activity)
 {
     this.Activity = activity;
     this.UniqueId = activity.ActivityID.ToString();
 }
 public void OnNavigatedTo(NavigationContext navigationContext)
 {
     this.activityToSelect = this.SelectedActivity;
     this.Activities = null;
 }
 private bool FilterActivity(Activity entity)
 {
     return (entity.OpportunityID == this.OpportunityID);
 }