Esempio n. 1
0
 private void btn_OK_Click(object sender, EventArgs e)
 {
     succeed = false;
     while (!succeed)
     {
         if (isAdd)
         {
             succeed = orderService.AddOrder(txt_Name.Text, txt_Address.Text);
         }
         else
         {
             succeed = orderService.UpdateOrder(txt_Name.Text, txt_Address.Text);
         }
         if (!succeed)
         {
             lbl_Status.Text = "异常输入";
         }
     }
     this.Close();            return;
 }