void OnLogin(TEsRspField rsp)
            {
                if (rsp.ErrorCode == 0)
                {
                    this.trader.isLogin = true;

                    StringBuilder s = new StringBuilder();
                    EsunnyWrapper.InvokeAPI(this.trader._instance, EsunnyWrapperAction.GetTradingDay, s);

                    Trace.WriteLine("交易日:" + s);
                }
                else
                {
                    PInvokeUtility.GetUnicodeString(rsp.ErrorInfo);
                    this.trader.isLogin = false;
                }


                EventProcessor.BeginInvoke(this.trader.LoginResponse, this.trader, new EsunnyEventArgs <TEsRspField>(rsp));
            }
 /// <summary>
 /// 修改密码应答
 /// </summary>
 /// <param name="rsp"></param>
 void OnSetPass(TEsRspField rsp)
 {
     EventProcessor.BeginInvoke(this.trader.SetPassResponse, this.trader, new EsunnyEventArgs<TEsRspField>(rsp));
 }
 /// <summary>
 /// 修改密码应答
 /// </summary>
 /// <param name="rsp"></param>
 void OnSetPass(TEsRspField rsp)
 {
     EventProcessor.BeginInvoke(this.trader.SetPassResponse, this.trader, new EsunnyEventArgs <TEsRspField>(rsp));
 }
            void OnLogin(TEsRspField rsp)
            {
                if (rsp.ErrorCode == 0)
                {
                  this.trader.isLogin = true;

                  StringBuilder s = new StringBuilder();
                  EsunnyWrapper.InvokeAPI(this.trader._instance, EsunnyWrapperAction.GetTradingDay, s);

                  Trace.WriteLine("交易日:" + s);
                }
                else
                {
                  PInvokeUtility.GetUnicodeString(rsp.ErrorInfo);
                  this.trader.isLogin = false;
                }

                EventProcessor.BeginInvoke(this.trader.LoginResponse, this.trader, new EsunnyEventArgs<TEsRspField>(rsp));
            }