private void button_login_Click(object sender, EventArgs e) { if (Enabled) { var username = textbox_username.Text; var password = textbox_password.Text; if (!(string.IsNullOrEmpty(username) || string.IsNullOrEmpty(password))) { Enabled = false; VRCApi.Login(username, password); } } }