public virtual void PreProcess(IInvocation invocation, CoreInterceptContext context) { if (invocation.Method.Name.StartsWith("get_") || "ToString".Equals(invocation.Method.Name)) { return; } context.UiItem.Focus(); }
public virtual void PreProcess(IInvocation invocation, CoreInterceptContext context) { if (invocation.Method.Name.StartsWith("get_") || "ToString".Equals(invocation.Method.Name)) { return; } context.ActionListener.ActionPerforming((UIItem)context.UiItem); }
public virtual void PostProcess(IInvocation invocation, CoreInterceptContext context) { }
public CoreInterceptor(IUIItem uiItem, ActionListener actionListener) { coreInterceptContext = new CoreInterceptContext(uiItem, actionListener); }