public void TagRecordChangedEventHandler(object sender, DataChangedEventArgs args) { if (this.InvokeRequired) { BeginInvoke(new Action(() => OnPrimaryKeyChanged(EventArgs.Empty))); } else OnPrimaryKeyChanged(EventArgs.Empty); }
/// <summary> /// 提供事件方法可被告知要移除快取資料 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void NotifyRemove(object sender, DataChangedEventArgs e) { this.Remove(e.PrimaryKeys); }
private void Course_AfterChange(object sender, DataChangedEventArgs e) { CacheProvider.Course.SetOutOfDate("SchoolYear", "Semester"); CacheProvider.Course.Remove(e.PrimaryKeys); SetFilterSourceFromCache(); }