private void bunifuFlatButton1_Click(object sender, EventArgs e) { user = bunifuMaterialTextbox1.Text; pass = textBox1.Text; QProject qp = new QProject(); qp.LoginCheck(user, pass); bunifuMaterialTextbox1.Text = ""; textBox1.Text = ""; }
private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == 13) { user = bunifuMaterialTextbox1.Text; pass = textBox1.Text; QProject qp = new QProject(); qp.LoginCheck(user, pass); bunifuMaterialTextbox1.Text = ""; textBox1.Text = ""; } }