Esempio n. 1
0
        private void btnThemLoaiDo_Click(object sender, EventArgs e)
        {
            frmThemLoaiDo frm = new frmThemLoaiDo();

            frm.ShowDialog();
            LoadLoaiDo();
        }
Esempio n. 2
0
        private void btnEditLoai_Click(object sender, EventArgs e)
        {
            int           ID      = int.Parse(gvLoaiDo.GetRowCellValue(gvLoaiDo.FocusedRowHandle, "ID").ToString());
            string        tenLoai = gvLoaiDo.GetRowCellValue(gvLoaiDo.FocusedRowHandle, "TenLoai").ToString();
            frmThemLoaiDo frm     = new frmThemLoaiDo(ID, tenLoai);

            frm.ShowDialog();
            LoadDo();
        }