public void WriteLoginMessage(string message)
{
if (message.IsNullOrBlank())
{
UIHelper.SetVisibility(m_loginError, Visibility.Collapsed);
}
else
{
UIHelper.SetVisibility(m_loginError, Visibility.Visible);
UIHelper.SetText(m_loginError, (message.Length > MAX_STATUS_MESSAGE_LENGTH) ? message.Substring(0, MAX_STATUS_MESSAGE_LENGTH) : message);
}
}