private async Task LoadBills() { var names = await BudgetDatabase.GetBillPayees(); //List<Grouping<string, Bill>> data = (bills.GroupBy(x => x.Payee, StringComparer.OrdinalIgnoreCase) // .Select(groupedTable => new Grouping<string, Bill>(groupedTable.Key, groupedTable))).ToList(); names.Sort(); Trackers.Clear(); foreach (var name in names) { //var bt = new BillTracker(item.Key, item.Grouped); Trackers.Add(new BillTrackerQuickViewModel(navigationService, name)); } }
protected override void CreateTrackers() { if (SourceFeature == null || SourceFeature.Geometry == null) { return; } if (trackerSmallStart == null) { trackerSmallStart = TrackerSymbolHelper.GenerateSimple(new Pen(Color.Blue), new SolidBrush(Color.DarkBlue), 6, 6); trackerSmallEnd = TrackerSymbolHelper.GenerateSimple(new Pen(Color.Tomato), new SolidBrush(Color.Maroon), 6, 6); trackerSmall = TrackerSymbolHelper.GenerateSimple(new Pen(Color.Green), new SolidBrush(Color.Lime), 6, 6); selectedTrackerSmall = TrackerSymbolHelper.GenerateSimple(new Pen(Color.DarkMagenta), new SolidBrush(Color.Magenta), 6, 6); } Trackers.Clear(); Trackers.AddRange(CreateTrackersForGeometry(SourceFeature.Geometry)); AllTracker = new TrackerFeature(this, null, -1, null); }