12345678910111213141516171819202122232425262728293031 |
- using System;
- using System.Threading;
- using Comal.Classes;
- using InABox.Core;
- using InABox.DynamicGrid;
- namespace PRSDesktop
- {
- internal class GPSTrackerGrid : DynamicDataGrid<GPSTracker>
- {
- public GPSTrackerGrid()
- {
- ActionColumns.Add(new DynamicMapColumn<GPSTracker>(this, x => x.Location));
- }
- protected override void DoReconfigure(DynamicGridOptions options)
- {
- base.DoReconfigure(options);
- options.RecordCount = true;
- options.SelectColumns = true;
- }
- protected override void Reload(
- Filters<GPSTracker> criteria, Columns<GPSTracker> columns, ref SortOrder<GPSTracker>? sort,
- CancellationToken token, Action<CoreTable?, Exception?> action)
- {
- sort = new SortOrder<GPSTracker>(x => x.DeviceID);
- base.Reload(criteria, columns, ref sort, token, action);
- }
- }
- }
|