From 3360ca03021cbea774de559eee261eedb5280a2f Mon Sep 17 00:00:00 2001 From: John Colvin Date: Wed, 27 Sep 2017 16:47:46 -0400 Subject: [PATCH] SyntheticEditor2 - switching payless\up order --- .../Shell/Securities/Synthetic2/SyntheticEditor2.xaml.cs | 4 ++-- .../Shell/Securities/Synthetic2/VM/SyntheticEditorVM2.cs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/client/spark/mspark/Shell/Securities/Synthetic2/SyntheticEditor2.xaml.cs b/src/client/spark/mspark/Shell/Securities/Synthetic2/SyntheticEditor2.xaml.cs index ce6456fba..a59c402f4 100644 --- a/src/client/spark/mspark/Shell/Securities/Synthetic2/SyntheticEditor2.xaml.cs +++ b/src/client/spark/mspark/Shell/Securities/Synthetic2/SyntheticEditor2.xaml.cs @@ -1,7 +1,6 @@ using bts.api; using mbts.ui.controls; using System; -using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Globalization; @@ -45,7 +44,8 @@ namespace mbts.ui.spark #endregion #region ParameterRows - public static readonly DependencyProperty ParameterRowsProperty = DependencyProperty.Register("ParameterRows", typeof(IEnumerable), typeof(SyntheticEditor2), new PropertyMetadata(Enumerable.Empty(), OnParameterRowsChanged)); + public static readonly DependencyProperty ParameterRowsProperty = DependencyProperty.Register("ParameterRows", typeof(IEnumerable), typeof(SyntheticEditor2), + new PropertyMetadata(Enumerable.Empty(), OnParameterRowsChanged)); private static void OnParameterRowsChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { var rows = e.NewValue as IEnumerable; if (rows != null) { diff --git a/src/client/spark/mspark/Shell/Securities/Synthetic2/VM/SyntheticEditorVM2.cs b/src/client/spark/mspark/Shell/Securities/Synthetic2/VM/SyntheticEditorVM2.cs index f73eef2c5..097bf3344 100644 --- a/src/client/spark/mspark/Shell/Securities/Synthetic2/VM/SyntheticEditorVM2.cs +++ b/src/client/spark/mspark/Shell/Securities/Synthetic2/VM/SyntheticEditorVM2.cs @@ -35,12 +35,12 @@ namespace mbts.spark new QuoteInsideMarketDistanceWithTravelLimitModel(), new LeanRatioModel(), new MaxTicksInsideMarketModel(), - payup.is_ratio_model, - payup.threshold_model, - payup.is_ratio_model, payless.is_ratio_model, payless.threshold_model, payless.ticks_model, + payup.is_ratio_model, + payup.threshold_model, + payup.ticks_model, new SendHedgeAsMarketOrderModel(), new PostHedgePriceBasedCrossTicks(), new PostHedgePriceBasedCrossMarketTicks(),