示例#1
0
 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);
        }
示例#3
0
 public virtual void PostProcess(IInvocation invocation, CoreInterceptContext context)
 {
 }
 public CoreInterceptor(IUIItem uiItem, ActionListener actionListener)
 {
     coreInterceptContext = new CoreInterceptContext(uiItem, actionListener);
 }