public static Delegate [] GetEventCount11( ) { Delegate [] dglist2 = null; if (NotifyOfDataChange != null) { dglist2 = RecordDeleted?.GetInvocationList( ); } return(dglist2); }
public bool Delete() { if (string.IsNullOrEmpty(DeletePrompt)) { DeletePrompt = "This will delete the record permanently."; } if (MessageBox.Show(DeletePrompt, "Delete Record", MessageBoxButtons.OKCancel) == DialogResult.OK) { _db.DeleteOne(_record); RecordDeleted?.Invoke(this, new EventArgs()); IsDirty = false; return(AddNew()); } return(false); }
public void RemoveRecord() { RecordDeleted?.Invoke(_teamId, m_recordCategory, _timeRecorded.text); Destroy(gameObject); }
public static void TriggerRecordDeleted(string Source, string bankno, string custno, int CurrrentRow) { RecordDeleted?.Invoke(Source, bankno, custno, CurrrentRow); }
private void Apply(RecordDeleted e) { IsDeleted = true; UpdatedBy = e.UserId; UpdatedDateTime = e.TimeStamp; }
protected virtual void OnRecordDeleted(object o, EventArgs e) { WriteLine(5, "RecordsModified event emitted: OnRecordDeleted"); RecordDeleted?.Invoke(o, e); }
public void Delete(IDbConnection connection, TRecord record, object parameters = null, string userName = null) { EvalWritePermission(connection, userName, record); OnDelete(connection, record, parameters); RecordDeleted?.Invoke(connection, record, userName); }