Example #1
0
 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);
     }
 }
Example #2
0
        private void btnShowTransactionLog_ItemClick(object sender, DevExpress.XtraBars.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 = m_trionicFileInformation.GetSymbolNameByAddress(entry.SymbolAddress);

                }
                translog.SetTransactionLog(m_ProjectTransactionLog);
                translog.Show();
            }
        }
Example #3
0
 void translog_onNoteChanged(object sender, frmTransactionLog.RollInformationEventArgs e)
 {
     m_ProjectTransactionLog.SetEntryNote(e.Entry);
 }