private void SetButtonStates()
{
btnUndo.Visible = btnSave.Visible = _projectOpened && IsDirty();
btnParseSourceDocument.Enabled = _projectInfo != null
&& _projectInfo.TranslationInfo != null
&& !btnSave.Visible
&& !_aixmlTranslationInProgress
&& !_aixmlParseInProgress
&& _projectOpened;
btnBuildSignalMap.Enabled = !_aixmlTranslationInProgress && !_aixmlParseInProgress && _projectOpened;
btnTranslateAIXML.Enabled = !_aixmlTranslationInProgress && !_aixmlParseInProgress && _projectOpened;
}