Ejemplo 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);
        }
Ejemplo n.º 2
0
 private void refreshDgv()
 {
     this.dgv.DataSource = Learning.getAllLearners();
     DGVHelper.AutoSizeForDGV(dgv);
 }
Ejemplo n.º 3
0
 private void FrmLearning_Load(object sender, EventArgs e)
 {
     this.dgv.DataSource = Learning.getAllLearners();
     DGVHelper.AutoSizeForDGV(dgv);
 }