예제 #1
0
        private void OrderGrid_OnOrderReRegistering(Order order)
        {
            var window = new OrderWindow
            {
                Title              = LocalizedStrings.Str2976Params.Put(order.TransactionId),
                SecurityProvider   = _connector,
                MarketDataProvider = _connector,
                Portfolios         = new PortfolioDataSource(_connector),
                Order              = order.ReRegisterClone(newVolume: order.Balance)
            };

            if (window.ShowModal(this))
            {
                _connector.ReRegisterOrder(order, window.Order);
            }
        }