public string GetShortText()
{
if (_ribbonButton.KryptonCommand != null)
{
if (_firstText)
return _ribbonButton.KryptonCommand.TextLine1;
else if (!string.IsNullOrEmpty(_ribbonButton.KryptonCommand.TextLine2))
return _ribbonButton.KryptonCommand.TextLine2;
else
return " ";
}
else if (_firstText)
return _ribbonButton.TextLine1;
else if (!string.IsNullOrEmpty(_ribbonButton.TextLine2))
return _ribbonButton.TextLine2;
else
return " ";
}