private void BtnLoginClick(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(TxtUser.Text.Trim()) && !string.IsNullOrEmpty(TxtPass.Text.Trim()) &&
!string.IsNullOrEmpty(TxtKey.Text.Trim()))
{
if (DoLogin != null)
{
DoLogin(this, new EventArgs());
}
}
else
{
MessageBox.Show(Resources.LoginNoCredentials, Resources.MessageBoxTitle, MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
}