private static void Host_PostAddNumberInfo(object sender, Chromium.Remote.Event.CfrV8HandlerExecuteEventArgs e) { try { string strNumber = e.Arguments[0].StringValue; int number = Utility.StrToInt(strNumber); bool ret = LimitManager.Add(number); e.SetReturnValue(ret); } catch (Exception ex) { Log4Helper.ErrorInfo(ex.Message, ex); ViewCallFunction.ViewAlert(ex.Message); } }