예제 #1
0
 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();
     }
 }
예제 #2
0
        private void btnThemLSP_Click(object sender, EventArgs e)
        {
            Form frm = new frmThemLoaiSP();

            frm.ShowDialog();
        }