Esempio n. 1
0
        private void delTheLearnerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DataGridViewRow dgvR = dgv.CurrentRow;

            if (dgvR == null)
            {
                return;
            }
            string   name    = dgvR.Cells["姓名"].Value.ToString();
            Learning learner = new Learning(name);

            learner.del();
            ShowResult.show(lblResult, "已删除!", true);
            timerClsResult.Start();
            this.dgv.DataSource = Learning.getAllLearners();
            DGVHelper.AutoSizeForDGV(dgv);
        }