コード例 #1
0
        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;
        }
コード例 #2
0
 private void radioButton1_CheckedChanged(object sender, EventArgs e)
 {
     dgvMedList.DataSource = bMed.getExpiredMedecine();
 }