Пример #1
0
        private void AddIcebergOrder_OnClick(object sender, RoutedEventArgs e)
        {
            var vm = (ATOrderBookViewModel)DataContext;
            var dlg = new AddIcebergOrder();
            dlg.SetDefaultClOrdID(vm.CreateClOrdID());
            var result = dlg.ShowDialog();

            if (result.HasValue && result.Value)
            {
                vm.CreateIcebergOrder(dlg.Symbol,
                                      dlg.ClOrdID,
                                      dlg.Side,
                                      dlg.TotalQuantity,
                                      dlg.ClipSize,
                                      dlg.Price,
                                      dlg.PriceDelta);
            }
        }
Пример #2
0
        private void AddIcebergOrder_OnClick(object sender, RoutedEventArgs e)
        {
            var vm  = (ATOrderBookViewModel)DataContext;
            var dlg = new AddIcebergOrder();

            dlg.SetDefaultClOrdID(vm.CreateClOrdID());
            var result = dlg.ShowDialog();

            if (result.HasValue && result.Value)
            {
                vm.CreateIcebergOrder(dlg.Symbol,
                                      dlg.ClOrdID,
                                      dlg.Side,
                                      dlg.TotalQuantity,
                                      dlg.ClipSize,
                                      dlg.Price,
                                      dlg.PriceDelta);
            }
        }