public override object GetValue(object theObject){
     var args = new CustomXPMemberInfoValueEventArgs(theObject);
     OnCustomGetValue(args);
     if (!args.Handled)
         return base.GetValue(theObject);
     return args.Value;
 }
        public override void SetValue(object theObject, object theValue)
        {
            var args = new CustomXPMemberInfoValueEventArgs(theObject, theValue);

            OnCustomSetValue(args);
            base.SetValue(theObject, theValue);
        }
        protected virtual void OnCustomGetValue(CustomXPMemberInfoValueEventArgs e)
        {
            EventHandler <CustomXPMemberInfoValueEventArgs> handler = CustomGetValue;

            if (handler != null)
            {
                handler(this, e);
            }
        }
        public override object GetValue(object theObject)
        {
            var args = new CustomXPMemberInfoValueEventArgs(theObject);

            OnCustomGetValue(args);
            if (!args.Handled)
            {
                return(base.GetValue(theObject));
            }
            return(args.Value);
        }
 public override void SetValue(object theObject, object theValue){
     var args = new CustomXPMemberInfoValueEventArgs(theObject, theValue);
     OnCustomSetValue(args);
     base.SetValue(theObject, theValue);
 }
 protected virtual void OnCustomGetValue(CustomXPMemberInfoValueEventArgs e){
     EventHandler<CustomXPMemberInfoValueEventArgs> handler = CustomGetValue;
     if (handler != null) handler(this, e);
 }