예제 #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);
            }
        }
예제 #2
0
 public void ScopeWith(ARScope scope, ARScope.ScopeComponent component, Action <dynamic>?action = null) => this.ScopeWith(scope, null, component, action);