private void btnNew_Click(object sender, System.EventArgs e)
 {
     try
     {
         //ListViewItem lvi = viewProducts.FocusedItem;
         frmBookListInfo fBLI = new frmBookListInfo("", "", "", "add", this);
         fBLI.ShowDialog();
     }
     catch {}
 }
 private void btnEdit_Click(object sender, System.EventArgs e)
 {
     try
     {
         ListViewItem    lvi  = viewProducts.FocusedItem;
         frmBookListInfo fBLI = new frmBookListInfo(lvi.Text, lvi.SubItems[1].Text, lvi.SubItems [2].Text, "update", this);
         fBLI.ShowDialog();
     }
     catch {}
 }
 private void viewProducts_DoubleClick(object sender, System.EventArgs e)
 {
     try
     {
         ListViewItem    lvi  = viewProducts.FocusedItem;
         frmBookListInfo fBLI = new frmBookListInfo(lvi.Text, lvi.SubItems[1].Text, lvi.SubItems [2].Text, "update", this);
         fBLI.ShowDialog();
         //MessageBox.Show (lvi.Text.ToString () ,lvi.Tag.ToString () );
     }
     catch {}
 }