Exemplo n.º 1
0
 public ConditionalHideBoolAttribute(string conditionalSourceField, bool enabledValue, ConditionalHideBehavior behavior = ConditionalHideBehavior.Disable)
 {
     this.ConditionalSourceField = conditionalSourceField;
     this.EnabledValue           = enabledValue;
     this.Behavior = behavior;
 }
Exemplo n.º 2
0
 public ConditionalHideIntCustomDisplayAttribute(string conditionalSourceField, int enabledValue, ConditionalHideBehavior behavior = ConditionalHideBehavior.Disable, CustomDisplayMode displayMode = CustomDisplayMode.NoLabel) : base(conditionalSourceField, enabledValue, behavior)
 {
     this.ConditionalSourceField = conditionalSourceField;
     this.EnabledValue           = enabledValue;
     this.Behavior    = behavior;
     this.DisplayMode = displayMode;
 }