public UserIdentity(string username, string password)
{
m_username = username;
m_password = password;
if (!String.IsNullOrEmpty(m_username))
{
int index = m_username.IndexOf('\\');
if (index != -1)
{
m_domain = m_username.Substring(0, index);
m_username = m_username.Substring(index+1);
}
}
}
#endregion