I found a good your code sample how to handle "read-only" properties but something is wrong and I can figure out why it doesn't work as it should, so decided to ask more experienced people to find a solution.
First of all I would like to explain what my goal exactly is. Depending on TpSlType property which is enum I want to achieve "readonly" visibility for others connected with options which haven't been choosen.
For example:
If I have a TickMode then only properties should be: Sl ticks, TP ticks ----> the rest of them read only
If I have a Fixed RR mode then only properties should be: Sl ticks, ChooseRiskRatio ----> the rest of them read only
and analogic for FibBased.
The additional classes about it are on the end of code.
Thanks for your help !

Comment