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

            searchCard.reLoad_method();
            this.Hide();
        }
        private void 停车证检索ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            panel1.Controls.Clear();
            this.IsMdiContainer = true;
            SearchCard cardAdd = new SearchCard();

            cardAdd.MdiParent = this;
            cardAdd.Parent    = this.panel1;
            label1.Visible    = false;

            cardAdd.FormBorderStyle = FormBorderStyle.None;
            cardAdd.Show();
        }
Beispiel #3
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();
     }
 }
 public EditInfo(int id, SearchCard searchCard)
 {
     InitializeComponent();
     this.id         = id;
     this.searchCard = searchCard;
 }
Beispiel #5
0
 public CardAdd(int d, SearchCard searchCard)
 {
     search = d;
     InitializeComponent();
     this.searchCard = searchCard;
 }