From 3af7e561b9b50342b314d81d2c8f27d521b035e9 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Tue, 2 Apr 2019 09:01:53 -0500 Subject: [PATCH 1/2] fix crash in miniob --- src/client/spark/Modules/Trading/OrderBook/OrderBookVM.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/spark/Modules/Trading/OrderBook/OrderBookVM.cs b/src/client/spark/Modules/Trading/OrderBook/OrderBookVM.cs index 392b4c47a..552d080aa 100644 --- a/src/client/spark/Modules/Trading/OrderBook/OrderBookVM.cs +++ b/src/client/spark/Modules/Trading/OrderBook/OrderBookVM.cs @@ -253,8 +253,8 @@ namespace mbts.spark { (gen, anims) => new OrderBookGridSettings(gen, anims.Select(a => new OrderRecordTuplePredicateAnimations(a.predicate_data, a.cell_animations, a.row_animations, a.sound_notifications))), p => p.create_predicate(notification_service.data_cache), p => p.create_notification_predicate(notification_service.data_cache), - notification_service.link_to_order, - notification_service.link_to_order, + notification_service == null ? new Func, SoundNotification, IDisposable>((p, sn) => Disposable.empty) : notification_service.link_to_order, + notification_service == null ? new Func, IDisposable>(t => Disposable.empty) : notification_service.link_to_order, col_settings_flags); } From 16acc4f5b066e60170f9d4ba0ecd8423dd16f399 Mon Sep 17 00:00:00 2001 From: Jake Norbut Date: Tue, 2 Apr 2019 09:42:20 -0500 Subject: [PATCH 2/2] Mass cancel messaging nits --- .../spark/Modules/Trading/OrderBook/OrderBookWindow.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/spark/Modules/Trading/OrderBook/OrderBookWindow.cs b/src/client/spark/Modules/Trading/OrderBook/OrderBookWindow.cs index d1472349d..f4eb11c35 100644 --- a/src/client/spark/Modules/Trading/OrderBook/OrderBookWindow.cs +++ b/src/client/spark/Modules/Trading/OrderBook/OrderBookWindow.cs @@ -90,7 +90,7 @@ namespace mbts.spark { wbids => wbids.Any(), () => { var resp = BTSMessageBox.Show( - "Are you sure you want to cancel all working buy orders?", + "Are you sure you want to cancel all BUY orders?", "Cancel Buy Orders", BTSMessageBoxButtons.Yes | BTSMessageBoxButtons.No, MessageBoxImage.Question); @@ -103,7 +103,7 @@ namespace mbts.spark { wasks => wasks.Any(), () => { var resp = BTSMessageBox.Show( - "Are you sure you want to cancel all working sell orders?", + "Are you sure you want to cancel all SELL orders?", "Cancel Sell Orders", BTSMessageBoxButtons.Yes | BTSMessageBoxButtons.No, MessageBoxImage.Question); @@ -116,7 +116,7 @@ namespace mbts.spark { worders => worders.Any(), () => { var resp = BTSMessageBox.Show( - "Are you sure you want to cancel all working orders?", + "Are you sure you want to cancel ALL orders?", "Cancel All Orders", BTSMessageBoxButtons.Yes | BTSMessageBoxButtons.No, MessageBoxImage.Question);