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

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

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemplo n.º 4
0
        public override object GetValue(object theObject)
        {
            var args = new CustomXPMemberInfoValueEventArgs(theObject);

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