Help: business/front end logic implementation 101Help: business/front end logic implementation 101
Old forum URL: forums.lhotka.net/forums/t/3482.aspx
PAT336 posted on Wednesday, September 05, 2007
Hi,
Can anyone help me on how to implement this on Windows from, business class:
On employee form there is a "Bonus" checkbox, when it is checked "Percentage" textbox should be enabled, if "Percentage" is > 10 then "Area Manager" check box sould be enabled.
Thanks,
PAT
ajj3085 replied on Wednesday, September 05, 2007
You can override CanWriteProperty to take the percent and Area Manager properties into account.
If Bonus is checked, CWP should return true for Percentage, false if Bonus is not checked. Also, when Bonus is unchecked, it could set those other fields (null them, I'd imagine).
HTH
Andy
PAT336 replied on Friday, September 07, 2007
Andy,
I overridden CanWriteProperty to enable/disable UI components and used Set method of bonus property to set percentage 0 when bonus is not checked.
Thanks a lot,
Pat
Copyright (c) Marimer LLC