static void TaskSetVoteAutoHide(FrameworkElement fe, string route, PropertyRoute context) { if (context.PropertyRouteType == PropertyRouteType.FieldOrProperty) { if (context.IsAllowed() == null) { VoteVisible(fe); } else { VoteCollapsed(fe); } } }
public override string IsAllowed() { PropertyRoute pr = GetPropertyRoute(); string parent = Parent.IsAllowed(); string route = pr == null ? null : pr.IsAllowed(); if (parent.HasText() && route.HasText()) { return(QueryTokenMessage.And.NiceToString().Combine(parent, route)); } return(parent ?? route); }
static void TaskSetVoteAutoHide(FrameworkElement fe, string route, PropertyRoute context) { if (context.PropertyRouteType == PropertyRouteType.FieldOrProperty) { if(context.IsAllowed() == null) { VoteVisible(fe); } else { VoteCollapsed(fe); } } }
public override string?IsAllowed() { return(PropertyRoute.IsAllowed()); }