예제 #1
0
 //When pressed, the button sets the CancelIsPressed on CheckPasswordBindingModel binding model
 private void button2_Click(object sender, EventArgs e)
 {
     CheckPasswordController.SetCancelIsPressedAsync(this, checkPasswordBindingModel);
     textBox1.Text = String.Empty;
     textBox2.Text = String.Empty;
 }
예제 #2
0
 //When pressed, the button raises event for checking if the user has entered anything CheckPassword form
 private void button1_Click(object sender, EventArgs e)
 {
     CheckPasswordController.CheckIfTextBoxIsEmptyAsync(textBox1.Text, textBox2.Text, this, checkPasswordBindingModel);
     textBox1.Text = String.Empty;
     textBox2.Text = String.Empty;
 }