Exemplo n.º 1
0
 private void btnNew_Click(object sender, System.EventArgs e)
 {
     try
     {
         //ListViewItem lvi = viewProducts.FocusedItem;
         frmBookListInfo fBLI = new frmBookListInfo("", "", "", "add", this);
         fBLI.ShowDialog();
     }
     catch {}
 }
Exemplo n.º 2
0
 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 {}
 }
Exemplo n.º 3
0
 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 {}
 }