Exemplo n.º 1
0
        private void NewVoucher_Click(object sender, EventArgs e)
        {
            VoucherAdd lsFrm = new VoucherAdd();

            lsFrm.Connnection = lsGdb.Gdb;
            lsFrm.ShowDialog(this);
            InsertCondition();
            SelectVoucher(lsStartDate, lsEndDate, lsFlag);
        }
Exemplo n.º 2
0
        private void GrdView_CellDoubleClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
        {
            VoucherAdd frm = new VoucherAdd();

            frm.lsVouNO     = GrdView.ActiveSheet.GetText(e.Row, 0);
            frm.Connnection = lsGdb.Gdb;
            frm.ShowDialog(this);
            InsertCondition();
            SelectVoucher(lsStartDate, lsEndDate, lsFlag);
        }
Exemplo n.º 3
0
        private void ViewPicture_KeyUp(object sender, KeyEventArgs e)
        {
            switch (e.KeyCode)
            {
            case Keys.Escape:
            {
                this.Hide();
                break;
            }

            case Keys.F2:
                VoucherAdd lsReserveForm = new VoucherAdd();
                lsReserveForm.ShowDialog(this);
                break;
            }
        }
Exemplo n.º 4
0
        private void Main_KeyUp(object sender, KeyEventArgs e)
        {
            switch (e.KeyCode)
            {
            case Keys.Escape:
            {
                //if (MessageBox.Show("Do you exit Program", "Exit Program", MessageBoxButtons.YesNo) == DialogResult.Yes)
                //{
                //    Application.Exit();
                //}
                CloseFrm();
                break;
            }

            case Keys.PageUp:
                //axWindowsMediaPlayer1.Ctlcontrols.stop();
                //axWindowsMediaPlayer1.Ctlcontrols.play();
                //axWindowsMediaPlayer2.Ctlcontrols.play();
                break;

            case Keys.F2:
                VoucherAdd lsReserveForm = new VoucherAdd();
                lsReserveForm.ShowDialog(this);
                break;

            case Keys.F6:
                MemberAdd lsMemberAdd = new MemberAdd();
                lsMemberAdd.ShowDialog(this);
                break;

            case Keys.F7:
                ShopSendData lsSendData = new ShopSendData();
                lsSendData.ShowDialog(this);
                break;
            }
        }