using System; namespace OpenTap.Addin.Annotation { public enum GroupCheck { AND = 0, OR = 1 } public class DependOnAttribute : Attribute, IAnnotation { public string BindingName { get; set; } public object TargetValue { get; set; } public GroupCheck Check { get; set; } = GroupCheck.AND; public DependOnAttribute(string bindingName, object targetValue, GroupCheck check = GroupCheck.AND) { this.BindingName = bindingName; this.TargetValue = targetValue; this.Check = check; } } }