Example #1
0
        protected void ExecuteCommand(IClassMethod classMethod)
        {
            var resolvedDataContext = dataContext;

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

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