I'd like to set up some properties in a strategy, that wood be linked to each others.
For example, let's say I have these 2 properties :
[NinjaScriptProperty]
[Display(Name="Use value 1 ?", Order=1, GroupName="Value Set Up")]
public bool IsValue1Used
{ get; set; }
[NinjaScriptProperty]
[Range(1, int.MaxValue)]
[Display(Name="Your value 1 :", Order=2, GroupName="Value Set Up")]
public int value1
{ get; set; }
I would like to be able to do make the property "value1" visible in the parameters window only when the user click on the "IsValue1Used" property check box.
__________________________________________________ ___________
And, secondly, let's say I have these 2 properties :
[NinjaScriptProperty]
[Display(Name="Choice 1", Order=1, GroupName="Choice")]
public bool IsChoice1
{ get; set; }
[NinjaScriptProperty]
[Display(Name="Choice 2", Order=2, GroupName="Choice")]
public bool IsChoice2
{ get; set; }
I would like to have only one check box ticked at a time. Meaning that if the user check the Choice1, and then check the Choice 2 : the Choice1 will automatically be unchecked.
Is that all possible ?
Thanx in advance for your support.
Comment