private void man_fenpei_Click_1(object sender, EventArgs e) { Model.Wish model = new Model.Wish(); model.UserName = textBox10.Text; model.Result = textBox9.Text; BLL.Wish wish = new BLL.Wish(); if (wish.manadd(model) == true) { MessageBox.Show("添加成功"); } else { MessageBox.Show("添加失败"); } }
private void duqu_Click(object sender, EventArgs e) { BLL.Wish wish = new BLL.Wish(); textBox11.Text = wish.getlost(); }
private void Auto_fenpei_Click(object sender, EventArgs e) { BLL.Wish wish = new BLL.Wish(); dataGridView3.DataSource = wish.getdatatable(); }