Esempio n. 1
0
        public void ScopeWith(ARScope scope, ARScope.ScopeGroup?group, ARScope.ScopeComponent component, Action <dynamic>?action = null)
        {
            ARScopeEntry entry = new ARScopeEntry();

            entry.Inline = () =>
            {
                InvokeAsync(() => { this.StateHasChanged(); });
            };
            entry.Override = action;

            if (group.HasValue)
            {
                scope.AddIntoGroup(group.Value, component, entry);
            }
            else
            {
                scope.AddAction(component, entry);
            }
        }
Esempio n. 2
0
 public void ScopeWith(ARScope scope, ARScope.ScopeComponent component, Action <dynamic>?action = null) => this.ScopeWith(scope, null, component, action);