Example #1
0
 public virtual ExpParaOp GetOp(IEventArgs args)
 {
     if (op == null)
     {
         op = ExpSetParser.Parse(exp, args);
     }
     return(op);
 }
Example #2
0
 public override void DoAction(IEventArgs args)
 {
     // 如果有变量每次重新生成
     if (op == null || (exp.Contains(FreeUtil.VAR_START) && exp.Contains(FreeUtil.VAR_END)))
     {
         op = ExpSetParser.Parse(FreeUtil.ReplaceVar(exp, args), args);
     }
     try
     {
         op.Op(args);
     }
     catch (Exception e)
     {
         Sharpen.Runtime.PrintStackTrace(e);
     }
 }