private void lvLoaiSP_SelectedIndexChanged(object sender, EventArgs e) { if (lvLoaiSP.SelectedItems.Count > 0) { ListViewItem lt = lvLoaiSP.SelectedItems[0]; LoaiSPDTO lsp = (LoaiSPDTO)lt.Tag; Form frm = new frmThemLoaiSP(lsp); frm.ShowDialog(); } }
private void btnThemLSP_Click(object sender, EventArgs e) { Form frm = new frmThemLoaiSP(); frm.ShowDialog(); }