Example #1
0
 public static Delegate [] GetEventCount11( )
 {
     Delegate [] dglist2 = null;
     if (NotifyOfDataChange != null)
     {
         dglist2 = RecordDeleted?.GetInvocationList( );
     }
     return(dglist2);
 }
Example #2
0
 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);
 }
Example #3
0
 public void RemoveRecord()
 {
     RecordDeleted?.Invoke(_teamId, m_recordCategory, _timeRecorded.text);
     Destroy(gameObject);
 }
Example #4
0
 public static void TriggerRecordDeleted(string Source, string bankno, string custno, int CurrrentRow)
 {
     RecordDeleted?.Invoke(Source, bankno, custno, CurrrentRow);
 }
Example #5
0
 private void Apply(RecordDeleted e)
 {
     IsDeleted       = true;
     UpdatedBy       = e.UserId;
     UpdatedDateTime = e.TimeStamp;
 }
Example #6
0
 protected virtual void OnRecordDeleted(object o, EventArgs e)
 {
     WriteLine(5, "RecordsModified event emitted: OnRecordDeleted");
     RecordDeleted?.Invoke(o, e);
 }
Example #7
0
 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);
 }