Exemplo n.º 1
0
        protected void ExecuteCommand(IClassMethod classMethod)
        {
            var resolvedDataContext = dataContext;

            if (resolvedDataContext == null)
            {
                UnityDebug.LogWarning("ExecuteCommand without data context");
                return;
            }

            classMethod.Execute(resolvedDataContext);
        }
Exemplo n.º 2
0
 static Action GetCallbackFor(IVisualElement elt, IClassMethod vmMethod)
 {
     return(() => vmMethod.Execute(elt.dataContext));
 }