Exemple #1
0
        private void LVDayBook_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            String str = LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[0].Text;

            PurchaseReturn bd = new PurchaseReturn(this);

            bd.updatemode(str, LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[0].Text, 1);
            bd.MdiParent = this.MdiParent;
            bd.Show();
        }
Exemple #2
0
        private void LVDayBook_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                String str = LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[0].Text;

                PurchaseReturn bd = new PurchaseReturn(this);
                bd.updatemode(str, LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[0].Text, 1);
                bd.MdiParent = this.MdiParent;
                bd.Show();
            }
        }