Example #1
0
        private void btnnew_Click(object sender, EventArgs e)
        {
            PurchaseReturn frm = new PurchaseReturn();

            frm.MdiParent     = this.MdiParent;
            frm.StartPosition = FormStartPosition.CenterScreen;
            frm.Show();
            //this.Close();
        }
Example #2
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();
        }
Example #3
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();
            }
        }