protected void ExecuteCommand(IClassMethod classMethod) { var resolvedDataContext = dataContext; if (resolvedDataContext == null) { UnityDebug.LogWarning("ExecuteCommand without data context"); return; } classMethod.Execute(resolvedDataContext); }
static Action GetCallbackFor(IVisualElement elt, IClassMethod vmMethod) { return(() => vmMethod.Execute(elt.dataContext)); }