private void UpdateRollbackForwardControls()
{
btnRollback.Enabled = false;
btnRollforward.Enabled = false;
btnShowTransactionLog.Enabled = false;
if (Tools.Instance.m_ProjectTransactionLog != null)
{
for (int t = Tools.Instance.m_ProjectTransactionLog.TransCollection.Count - 1; t >= 0; t--)
{
if (!btnShowTransactionLog.Enabled) btnShowTransactionLog.Enabled = true;
if (Tools.Instance.m_ProjectTransactionLog.TransCollection[t].IsRolledBack)
{
btnRollforward.Enabled = true;
}
else
{
btnRollback.Enabled = true;
}
}
}
}