PR refactoring detach
This commit is contained in:
1 parent
0d020e9821
commit
e8d799a0f6
1 file changed
+4
-7
@@ -584,14 +584,11 @@ namespace mbts.spark {
|
||||
return os;
|
||||
}
|
||||
|
||||
internal void detach_orders(OrderBookRowVM order) {
|
||||
if (order.is_selected) {
|
||||
var detach_candidates = rows.Where(r => r.is_selected);
|
||||
_detach_orders_async(detach_candidates).ignore();
|
||||
// Don't change the is_selecte state here b/c it will cause state issues
|
||||
// in with the miniob attach param popup
|
||||
internal void detach_orders(OrderBookRowVM row) {
|
||||
if (row.is_selected) {
|
||||
_detach_orders_async(selected_rows).ignore();
|
||||
} else {
|
||||
_detach_orders_async(new[] { order }).ignore();
|
||||
_detach_orders_async(new[] { row }).ignore();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user