fills - fix duplicate SortDescriptions bug

This commit is contained in:
John Colvin committed 2018-03-06 12:51:41 -05:00
1 parent c91fe35310
commit b89825876b
1 file changed
-3
@@ -6,7 +6,6 @@ using mbts.ui;
using mbts.ui.utility;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Reactive.Linq;
using static bts.shell.FillsWindowFactory;
@@ -24,8 +23,6 @@ namespace mbts.spark
: base(orders != null && orders.Length > 0 ? model.get_order_fill_tuple_collection(orders) : model.get_fill_tuple_collection(), sorting_criteria) {
_model = model;
_orders = orders;
if (sorting_criteria != null) rows_view.SortDescriptions.AddRange(sorting_criteria.Select(sc => sc.to_sort_description()));
else rows_view.SortDescriptions.Add(new SortDescription(nameof(Row.fill_time), ListSortDirection.Descending));
account_filter = new DiscreteValues<Row, string>(_model.factory.accounts, r => r.account, nameof(Row.account));
user_filter = new DiscreteValues<Row, string>(_model.factory.users, r => r.user, nameof(Row.user));
security_filter = new DiscreteValues<Row, SecurityImmutable, SecurityCriteria>(_row_vms, sc => sc != null ?