12345678910111213141516171819202122232425262728293031323334 |
- using InABox.Clients;
- using InABox.Core;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading;
- using System.Threading.Tasks;
- namespace InABox.DynamicGrid;
- public interface IDynamicGridDataComponent<T>
- where T : BaseObject, new()
- {
- DynamicGrid<T> Grid { get; set; }
- /// <summary>
- /// Do any required updates when the options list is changed.
- /// </summary>
- /// <returns>Whether the columns need to be reloaded.</returns>
- bool OptionsChanged();
- void Reload(Filters<T> criteria, Columns<T> columns, SortOrder<T>? sort, CancellationToken token, Action<QueryResult> action);
- T LoadItem(CoreRow row);
- T[] LoadItems(CoreRow[] rows);
- void SaveItem(T item);
- void SaveItems(T[] items);
- void DeleteItems(CoreRow[] rows);
- }
|