Пример #1
0
 private void lvSanPham_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (lvSanPham.SelectedItems.Count > 0)
     {
         ListViewItem lt  = lvSanPham.SelectedItems[0];
         SanPhamDTO   sp  = (SanPhamDTO)lt.Tag;
         Form         frm = new frmThemSP(sp);
         frm.ShowDialog();
     }
 }
Пример #2
0
        private void btnThem_Click(object sender, EventArgs e)
        {
            Form frm = new frmThemSP();

            frm.ShowDialog();
        }