private void AppendError(string msg)
{
if (IsNullOrEmpty(this.ErrorMsg))
{
this.ErrorMsg = msg;
}
else
{
this.ErrorMsg += "\r\n" + msg;
}
}
}