void translog_onNoteChanged(object sender, frmTransactionLog.RollInformationEventArgs e) { m_ProjectTransactionLog.SetEntryNote(e.Entry); }
void translog_onRollForward(object sender, frmTransactionLog.RollInformationEventArgs e) { // alter the log! // rollback the transaction // now reload the list RollForward(e.Entry); if (sender is frmTransactionLog) { frmTransactionLog logfrm = (frmTransactionLog)sender; logfrm.SetTransactionLog(m_ProjectTransactionLog); } }
private void Projects_btnShowTransactionLog_ItemClick(object sender, ItemClickEventArgs e) { // show new form if (m_CurrentWorkingProject != string.Empty) { frmTransactionLog translog = new frmTransactionLog(); translog.onRollBack += new frmTransactionLog.RollBack(translog_onRollBack); translog.onRollForward += new frmTransactionLog.RollForward(translog_onRollForward); translog.onNoteChanged += new frmTransactionLog.NoteChanged(translog_onNoteChanged); foreach (TransactionEntry entry in m_ProjectTransactionLog.TransCollection) { entry.SymbolName = GetSymbolNameByAddress(entry.SymbolAddress); } translog.SetTransactionLog(m_ProjectTransactionLog); translog.Show(); } }