Exemple #1
0
        //添加学生按钮
        private void btnAddEmp_Click(object sender, EventArgs e)
        {
            frmAdd = new FrmEmpAddOrUpdate(null);
            var dialogResult = frmAdd.ShowDialog();

            if (dialogResult == System.Windows.Forms.DialogResult.OK)
            {
                dataGridView1.DataSource = null;
                dataGridView1.DataSource = empBll.QueryAll();
            }
        }