Ejemplo n.º 1
0
        public void GetDepth(object obj)
        {
            DepthParm depthparm = obj as DepthParm;

            Data.GetDepthResult = Protocol.GetDepth(depthparm.symbol);
            OnReadParamEvent(Data.GetDepthResult.ToString());//触发事件
        }
Ejemplo n.º 2
0
        private void timerDepth_Tick(object sender, EventArgs e)
        {
            DepthParm depthparm = new DepthParm();
            depthparm.symbol = Define.trade_symbol_cur;

            ThreadEx threadex = new ThreadEx();
            threadex.Start(new ParameterizedThreadStart(threadex.GetDepth), (Object)depthparm, new EventHandler(GetDepth), this);
        }