示例#1
0
        private void bt_AddKM_Click(object sender, EventArgs e)
        {
            cbb_KM.Items.Clear();
            Nhap_thong_tin_KM f = new Nhap_thong_tin_KM(null);

            f.d += new Nhap_thong_tin_KM.MyDel(ShowKM);
            f.d += new Nhap_thong_tin_KM.MyDel(setCBB);
            f.Show();
        }
示例#2
0
 private void bt_EditKM_Click(object sender, EventArgs e)
 {
     if (dtgrid_KM.SelectedRows.Count == 1)
     {
         cbb_KM.Items.Clear();
         Nhap_thong_tin_KM f = new Nhap_thong_tin_KM(dtgrid_KM.SelectedRows[0].Cells[0].Value.ToString());
         f.d += new Nhap_thong_tin_KM.MyDel(ShowKM);
         f.d += new Nhap_thong_tin_KM.MyDel(setCBB);
         f.Show();
         dtgrid_KM.DataSource = BLL_PBL3.Instance.GetListKM();
         setdtKM();
     }
     else
     {
         MessageBox.Show("Vui lòng chọn một đối tượng !");
     }
 }