コード例 #1
0
        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);
        }
コード例 #2
0
 public CoreInterceptor(IUIItem uiItem, ActionListener actionListener)
 {
     coreInterceptContext = new CoreInterceptContext(uiItem, actionListener);
 }
コード例 #3
0
 public virtual void PostProcess(IInvocation invocation, CoreInterceptContext context)
 {
 }
コード例 #4
0
 public virtual void PreProcess(IInvocation invocation, CoreInterceptContext context)
 {
     if (invocation.Method.Name.StartsWith("get_") || "ToString".Equals(invocation.Method.Name))
         return;
     context.UiItem.Focus();
 }