コード例 #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());//触发事件
        }
コード例 #2
0
ファイル: Main.cs プロジェクト: hao507/xiaoguxian
        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);
        }
コード例 #3
0
ファイル: Main.cs プロジェクト: hao507/xiaoguxian
        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);
        }