Ejemplo n.º 1
0
        public void GetOrderHistory(object obj)
        {
            OrderParm orderparm = obj as OrderParm;

            Data.GetOrderHistoryResult = Protocol.DoOrderHistory(orderparm.status, orderparm.symbol, orderparm.currentPage, orderparm.pageLength);
            OnReadParamEvent(Data.GetOrderHistoryResult.ToString());//触发事件
        }
Ejemplo n.º 2
0
        private void timer_OrderHistory_Tick(object sender, EventArgs e)
        {
            OrderParm orderparm = new OrderParm();
            orderparm.status = "2";
            orderparm.symbol = Define.coin_cur.ToString();
            orderparm.currentPage = "1";
            orderparm.pageLength = "100";

            ThreadEx threadex = new ThreadEx();
            threadex.Start(new ParameterizedThreadStart(threadex.GetOrderHistory), (Object)orderparm, new EventHandler(GetOrderHistory), this);
        }
Ejemplo n.º 3
0
        private void OnOrder()
        {
            //timer_order.Enabled = false;

            OrderParm orderparm = new OrderParm();
            orderparm.status = "0";
            orderparm.symbol = Define.coin_cur.ToString();
            orderparm.currentPage = "1";
            orderparm.pageLength = "100";

            ThreadEx threadex = new ThreadEx();
            threadex.Start(new ParameterizedThreadStart(threadex.GetOrderHistory), (Object)orderparm, new EventHandler(GetOrder), this);
        }