private void Button1_Click(object sender, EventArgs e)
        {
            EditinfoOK();
            SearchCard searchCard = (SearchCard)this.Owner;

            searchCard.reLoad_method();
            this.Hide();
        }
Пример #2
0
 private void Button1_Click(object sender, EventArgs e)
 {
     if (card_value1.TextLength == 0)
     {
         MessageBox.Show("请输入停车证号!");
         return;
     }
     else if (car_number1.TextLength == 0)
     {
         MessageBox.Show("请输入车牌号!");
         return;
     }
     else if (car_user1.TextLength == 0)
     {
         MessageBox.Show("请输入车主姓名!");
         return;
     }
     else if (idcard1.TextLength == 0)
     {
         MessageBox.Show("请输入身份证号!");
         return;
     }
     else if (!sex1.Checked && !sex2.Checked)
     {
         MessageBox.Show("请选择性别!");
         return;
     }
     else
     {
         AddCard();
     }
     if (search == 1)
     {
         SearchCard searchCard = (SearchCard)this.Owner;
         searchCard.reLoad_method();
         this.Hide();
     }
 }