protected void ucIDetail_ChildListNeedInstances(object sender, NeedListInstancesEventArgs e)
        {
            switch ((InstanceTypes)Enum.Parse(typeof(InstanceTypes), e.InstanceType))
            {
            case InstanceTypes.ContactContactMethod:
                e.Instances = CurrentInstance.ContactContactMethods;
                break;

            case InstanceTypes.ScheduleEvent:
                e.Instances = CurrentInstance.ScheduleEvents;
                break;

            case InstanceTypes.Activity:
                e.Instances = CurrentInstance.Activitys;
                break;

            case InstanceTypes.Transaction:
                e.Instances = CurrentInstance.Transactions;
                break;

            default:
                e.Instances = null;
                break;
            }
        }
Beispiel #2
0
 protected void childListControl_NeedListInstances(object sender, NeedListInstancesEventArgs e)
 {
     if (e.InstanceType == ChildListType.EntityItem.ToString())
     {
         e.Instances = CurrentDEntity.DEntityItems;
     }
 }
Beispiel #3
0
 protected void ucListManager_NeedListInstances(object sender, NeedListInstancesEventArgs e)
 {
     if (NeedListInstances != null)
     {
         NeedListInstances(this, e);
     }
 }
 private void childListControl_NeedListInstances(object sender, NeedListInstancesEventArgs e)
 {
     if (ChildListNeedInstances != null)
     {
         ChildListNeedInstances(this, e);
     }
 }
 protected void ucIDetail_ChildListNeedInstances(object sender, NeedListInstancesEventArgs e)
 {
     switch ((InstanceTypes)Enum.Parse(typeof(InstanceTypes), e.InstanceType))
     {
     case InstanceTypes.Post:
         e.Instances = CurrentInstance.Posts;
         break;
     }
 }
Beispiel #6
0
 protected void childListControl_NeedListInstances(object sender, NeedListInstancesEventArgs e)
 {
     if (e.InstanceType == ChildListType.SubjectFieldInfo.ToString())
     {
         e.Instances = SubjectFieldInfos;
     }
     else if (e.InstanceType == ChildListType.SubjectChildList.ToString())
     {
         e.Instances = CurrentSubject.SubjectChildLists;
     }
 }
        private IEnumerable <BaseDto> GetInstances()
        {
            NeedListInstancesEventArgs arg = new NeedListInstancesEventArgs(InstanceType);

            if (NeedListInstances != null)
            {
                NeedListInstances(this, arg);
            }

            return(arg.Instances);
        }
 protected void ucIList_NeedListInstances(object sender, NeedListInstancesEventArgs e)
 {
     e.Instances = CurrentInstances;
 }
Beispiel #9
0
 protected void ucIDetail_ChildListNeedInstances(object sender, NeedListInstancesEventArgs e)
 {
 }