public ConditionalHideBoolAttribute(string conditionalSourceField, bool enabledValue, ConditionalHideBehavior behavior = ConditionalHideBehavior.Disable) { this.ConditionalSourceField = conditionalSourceField; this.EnabledValue = enabledValue; this.Behavior = behavior; }
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; }