void ISupportFastRefresh.Refresh(IProgress progress, object[] identities, RefreshRequestPriority priority) { if (identities.Length == 1) { this.RefreshCore(progress, identities[0]); return; } throw new NotImplementedException(); }
void ISupportFastRefresh.Refresh(IProgress progress, object[] identities, RefreshRequestPriority priority) { if (identities == null) { throw new ArgumentNullException("identities"); } ExTraceGlobals.ProgramFlowTracer.TraceFunction <DataTableLoader, int>((long)this.GetHashCode(), "-->DataTableLoader.PartialRefresh: {0}. ID Count:{1}", this, identities.Length); if (this.table.PrimaryKey.Length == 0) { throw new InvalidOperationException("Must specify PrimaryKey of DataTable"); } base.RefreshCore(progress, this.CreatePartialRowRefreshRequest(identities, progress, priority)); ExTraceGlobals.ProgramFlowTracer.TraceFunction <DataTableLoader>((long)this.GetHashCode(), "<--DataTableLoader.PartialRefresh: {0}", this); }
public PartialRefreshRequestEventArgs(IProgress progress, object argument, object[] ids, RefreshRequestPriority priority) : base(false, progress, argument, priority) { this.Identities = ids; }
public DataTableLoaderPartialRefreshRequestEventArgs(DataTable dataTable, IProgress progress, object argument, object[] ids, RefreshRequestPriority priority) : base(progress, argument, ids, priority) { this.DataTable = dataTable; }
private RefreshRequestEventArgs CreatePartialRowRefreshRequest(object[] ids, IProgress progress, RefreshRequestPriority priority) { object argument; if (this.TryToGetPartialRefreshArgument(ids, out argument)) { return(new DataTableLoader.DataTableLoaderPartialRefreshRequestEventArgs(this.Table.Clone(), progress, argument, ids, priority)); } return(this.CreateFullRefreshRequest(progress)); }
public RefreshRequestEventArgs(bool isFullRefresh, IProgress progress, object argument, RefreshRequestPriority priority) : base(argument) { if (progress == null) { throw new ArgumentNullException("progress"); } this.isFullRefresh = isFullRefresh; this.priority = priority; this.progress = progress; this.worker = new BackgroundWorker(); }