public void GetCancelOrder(object obj)
        {
            CancelOrderParm cancelorderparm = obj as CancelOrderParm;

            Data.GetOrderResult = Protocol.GetCancelOrder(cancelorderparm.symbol, cancelorderparm.Order_id);
            OnReadParamEvent(Data.GetOrderResult.ToString());//触发事件
        }
Exemple #2
0
        private void listView_BuyWait_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            ListView.SelectedListViewItemCollection items = listView_Order.SelectedItems;

            foreach (ListViewItem item in items)
            {
                CancelOrderParm cancelorderparm = new CancelOrderParm();
                cancelorderparm.Order_id = item.SubItems[8].Text;
                cancelorderparm.symbol = Define.trade_symbol_cur;

                ThreadEx threadex = new ThreadEx();
                threadex.Start(new ParameterizedThreadStart(threadex.GetCancelOrder), (Object)cancelorderparm, new EventHandler(GetCancelOrder), this);

                //GetTradeList(BuyOrSell.ENTRUST,ConsignState.WAIT, webBrowser3.Document, item.Index);
            }
            OnOrder();
        }