Exemplo n.º 1
0
        private void LoadInitDataCompletedCallback(IInitDataProvider sender, DataSet initData)
        {
            sender.Completed -= LoadInitDataCompletedCallback;
            var loginData = SetResultForJavaTrader(_LoginInfo);

            if (initData != null && loginData != null)
            {
                DataSet ds = InitDataService.Init(_LoginInfo.Parameter.Request.ClientInfo.Session, initData);
                SetLoginDataToInitData(ds, loginData);
                _LoginInfo.Parameter.Request.UpdateContent(new Serialization.PacketContent(ds.ToPointer()));
            }
            else
            {
                _LoginInfo.Parameter.Request.UpdateContent(XmlResultHelper.ErrorResult);
            }
            SendCenter.Default.Send(_LoginInfo.Parameter.Request);
        }
Exemplo n.º 2
0
 private void LoadInitDataCompletedCallback(IInitDataProvider sender, DataSet initData)
 {
     sender.Completed -= LoadInitDataCompletedCallback;
     var loginData = SetResultForJavaTrader(_LoginInfo);
     if (initData != null && loginData != null)
     {
         DataSet ds = InitDataService.Init(_LoginInfo.Parameter.Request.ClientInfo.Session, initData);
         SetLoginDataToInitData(ds, loginData);
         _LoginInfo.Parameter.Request.UpdateContent(new Serialization.PacketContent(ds.ToPointer()));
     }
     else
     {
         _LoginInfo.Parameter.Request.UpdateContent(XmlResultHelper.ErrorResult);
     }
     SendCenter.Default.Send(_LoginInfo.Parameter.Request);
 }
Exemplo n.º 3
0
 private void GetInitDataCompletedCallback(IInitDataProvider sender, DataSet initData)
 {
     sender.Completed -= GetInitDataCompletedCallback;
 }
Exemplo n.º 4
0
 private void GetInitDataCompletedCallback(IInitDataProvider sender, DataSet initData)
 {
     sender.Completed -= GetInitDataCompletedCallback;
 }