public override void setDelegate(Delegate anyDelegate, String delegateName)
 {
     if (delegateName == "limit")
     {
         m_limitCallback = (LimitCallBack)anyDelegate;
     }
     else if (delegateName == "drag")
     {
         m_dragCallback = (DragCallBack)anyDelegate;
     }
     else if (delegateName == "dynamic")
     {
         m_dynamicCallback = (DynamicCallBack)anyDelegate;
     }
     else if (delegateName == "anim")
     {
         m_animCallback = (AnimCallBack)anyDelegate;
     }
     else if (delegateName == "scrollbar")
     {
         m_scrollbarCallback = (ScrollBarCallBack)anyDelegate;
     }
     else
     {
         throw new CKLBException("Unvalid delegate name");
     }
 }
 public bool setItemMode(EITEM_MODE mode, DynamicCallBack dynamicCallback)
 {
     if (CppObject != IntPtr.Zero)
     {
         m_dynamicCallback = dynamicCallback;
         return(CKLBUIList_cmdSetItemMode(CppObject, (int)mode));
     }
     else
     {
         throw new CKLBExceptionNullCppObject();
     }
 }
        public bool setItemMode(EITEM_MODE mode, DynamicCallBack dynamicCallback) 
        {
            if(CppObject != IntPtr.Zero) {
                m_dynamicCallback = dynamicCallback;
				return CKLBUIList_cmdSetItemMode(CppObject, (int)mode);
			} else {
				throw new CKLBExceptionNullCppObject();
            }
        }
 public override void setDelegate(Delegate anyDelegate, String delegateName)
 {
     if(delegateName == "limit") {
         m_limitCallback = (LimitCallBack)anyDelegate;
     } else if(delegateName == "drag") {
         m_dragCallback = (DragCallBack)anyDelegate;
     } else if(delegateName == "dynamic") {
         m_dynamicCallback = (DynamicCallBack)anyDelegate;
     } else if(delegateName == "anim") {
         m_animCallback = (AnimCallBack)anyDelegate;
     } else if(delegateName == "scrollbar") {
         m_scrollbarCallback = (ScrollBarCallBack)anyDelegate;
     } else {
         throw new CKLBException("Unvalid delegate name");
     }
 }