CSharpTutor.Controls.Login.BtnLoginClick C# (CSharp) Method

BtnLoginClick() private method

Try login with the given credentials
private BtnLoginClick ( object sender, EventArgs e ) : void
sender object sender
e System.EventArgs e
return void
        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);
            }
        }