protected virtual void OnAfterInsert(AfterInsertEventArgs e) { EventHandler <AfterInsertEventArgs> handler = AfterInsert; if (handler != null) { handler(this, e); } }
private void Db_AfterInsert(object sender, AfterInsertEventArgs e) { if (e.ItemInserted is ScannedData) { //((ScannedData)e.ItemInserted).xfec = DateTime.Now; //await Values.SQLidb.db.UpdateAsync((ScannedData)e.ItemInserted); Values.dFt.pushInfo(((ScannedData)e.ItemInserted).ToInfoData()); } var _pending = (Values.SQLidb.db.FindAsync <ScannedData>(r => r.Transmitted == false) != null); if (_pending != pendingData) { pendingData = _pending; } }