private void UpdateCurrentStatement() { if (GetCurrentIndex() < _persistence.Count) { _persistence.Change(GetCurrentIndex(), GetCurrentStatementState()); } }