Esempio n. 1
0
 private void edit_Click(object sender, EventArgs e)
 {
     viewForm.StudentAdd studentAdd = new StudentAdd();
     studentAdd.commodityID = Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].Value);
     studentAdd.ShowDialog();
     //当修改完学生信息时要关闭窗口同时刷新表格
     this.SetDataStaff();//刷新表格
 }
Esempio n. 2
0
 private void AddStuToolStripMenuItem_Click(object sender, EventArgs e)
 {
     viewForm.StudentAdd StuAdd = new viewForm.StudentAdd();
     StuAdd.commodityID = 0;
     StuAdd.ShowDialog();
 }