private void frmExpiredDrugsStatistics_Load(object sender, EventArgs e) { bMed = new bMedecine(); //Thống kê số liệu label1.Text = bMed.getAllMedecine().Count.ToString(); lblExpiredDrug.Text = bMed.getExpiredMedecine().Count.ToString(); lblNearlyExpiredDrug.Text = bMed.getNearlyExpiredMedecine().Count.ToString(); dgvMedList.DataSource = bMed.getExpiredMedecine(); FormatDataGridview(); radioButton1.Checked = true; }
private void radioButton1_CheckedChanged(object sender, EventArgs e) { dgvMedList.DataSource = bMed.getExpiredMedecine(); }