From d9b37efbbd966f7468fb2764401347d6bc73bee2 Mon Sep 17 00:00:00 2001 From: Kevin Darby Date: Fri, 9 Nov 2018 10:42:51 -0500 Subject: [PATCH] wrong enum --- .../spark/Modules/Spreader/ExecutionStrategyEditor.xaml.cs | 2 +- .../Quote/Conditional/ConditionalQuotingPriceTypeModel.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/spark/Modules/Spreader/ExecutionStrategyEditor.xaml.cs b/src/client/spark/Modules/Spreader/ExecutionStrategyEditor.xaml.cs index 3dbed4701..ae1321411 100644 --- a/src/client/spark/Modules/Spreader/ExecutionStrategyEditor.xaml.cs +++ b/src/client/spark/Modules/Spreader/ExecutionStrategyEditor.xaml.cs @@ -315,7 +315,7 @@ namespace mbts.ui.spark { else if (t == typeof(QuantityMeasure)) return QuantityMeasureTemplate; else if (t == typeof(LegSpreaderParams.Types.MarketDataType)) return MarketDataTypeTemplate; else if (t == typeof(LegSpreaderParams.Types.LegMarketDataCalculation)) return MarketDataCalculationTemplate; - else if (t == typeof(ConditionalQuoting.Types.PriceType)) return MarketDataCalculationTemplate; + else if (t == typeof(ConditionalQuoting.Types.PriceType)) return ConditionalPriceTypeTemplate; else return null; } diff --git a/src/client/spark/Modules/Spreader/VM/ParameterRows/Quote/Conditional/ConditionalQuotingPriceTypeModel.cs b/src/client/spark/Modules/Spreader/VM/ParameterRows/Quote/Conditional/ConditionalQuotingPriceTypeModel.cs index 26a8a4263..c90fa0fce 100644 --- a/src/client/spark/Modules/Spreader/VM/ParameterRows/Quote/Conditional/ConditionalQuotingPriceTypeModel.cs +++ b/src/client/spark/Modules/Spreader/VM/ParameterRows/Quote/Conditional/ConditionalQuotingPriceTypeModel.cs @@ -33,7 +33,7 @@ namespace mbts.spark cond.PriceType = value; } - protected override bool _get_enabled(LegSpreaderParamsTuple leg_tup) => false; //_get_value(leg_tup) != null; //TAHA_SPREADER + protected override bool _get_enabled(LegSpreaderParamsTuple leg_tup) => _get_value(leg_tup) != null; //TAHA_SPREADER ConditionalQuoting _get_value(LegSpreaderParamsTuple leg_tup) => leg_tup.leg_params.QuoteParams.ConditionalQuoting;