Hi all,
I'm trying to do something I've been historically available to do using Visual FoxPro (VFP). By use of a "SETALL()" function, I am able to do something like pertaining to a current form... this.SetAll( "someProperty", "toSomeNewValue" ) and it goes through and assigns the value to all controls. By creating my own custom property and an internal to VFP via "_assign", will cause these events to trigger. From THAT method, each control would take care of itself on the form, from enable/disable/visibility, editable, readonly, color, font, validation, etc, based on what I put in each individual control.
So, how would I do a similar thing in C#... Such as have a public property, or method, or delegate at the form level, such as "FormEditMode". Then, when I do something like this.FormEditMode = AddMode, all controls will be self-triggered to turn themselves on/off, enable/disable respectively instead of explicit calls for all controls on a given form.
Thanks