コード例 #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(this.textBox1.Text.Trim()) && !string.IsNullOrEmpty(this.textBox2.Text.Trim()))
     {
         BoolResponse result = client.ForgetPassword(this.textBox1.Text.Trim(), this.textBox2.Text.Trim());
         MessageBox.Show(result.Message);
         if (result.Result)
         {
             this.Close();
         }
     }
     else
     {
         MessageBox.Show("邮箱和用户名都不能为空");
     }
 }