Exemple #1
0
        private void LoadList()
        {
            string msg = "";

            bl.ResetVmParams();
            bl.ResetVmList();

            bl.ListVm = bl.GetList(bl.VmParams, ref msg);
            this.dataGridView1.DataSource = bl.ListVm;
        }
Exemple #2
0
 public void LoadList()
 {
     gradeAndSectionBl.ListVm = gradeAndSectionBl.GetList(gradeAndSectionBl.VmParams, ref msg);
     if (msg == "")
     {
         ListGridControl.DataSource = gradeAndSectionBl.ListVm;
         NoteLabel.Text             = "Result: " + gradeAndSectionBl.ListVm.Count;
     }
     else
     {
         MessageBox.Show(msg, DialogMessage.RetrieveFail, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }