Esempio n. 1
0
        private void btnMembership_Click(object sender, EventArgs e)
        {
            MemberShip_Frame msf = new MemberShip_Frame();

            msf.Show();
        }
Esempio n. 2
0
        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            switch (keyData)
            {
            case (Keys.Control | Keys.S):
                new ProductSearch_Frame(this).Show();
                return(true);

            case (Keys.Control | Keys.N):
                if (this.inv == null)
                {
                    createInvoice();
                }
                else
                {
                    MessageDialog.ShowAlert("Complete Current Invoice First", "Alert Message", "warning");
                }
                break;

            case (Keys.Control | Keys.P):
                PrinterSelect_Frame pf = new PrinterSelect_Frame(this.inv);
                pf.Show();
                break;

            case (Keys.Control | Keys.M):
                if (this.inv != null)
                {
                    if (inv.invoice_total > 0)
                    {
                        MemberShip_Frame memberShip = new MemberShip_Frame(this.inv);
                        memberShip.Show();
                    }
                    else
                    {
                        MessageBox.Show("Please Select Some Product First");
                    }
                }
                else
                {
                    MessageDialog.ShowAlert("No invoice found", "Alert Message", "warning");
                }

                break;

            case (Keys.Control | Keys.A):
                if (this.inv != null)
                {
                    payment_Frame payment = new payment_Frame(this.inv, this);
                    payment.Show();
                    updateInvoice();
                }
                else
                {
                    MessageDialog.ShowAlert("No invoice found", "Alert Message", "warning");
                }
                break;

            case (Keys.Return):
                checkForInvoice();
                break;
            }
            return(base.ProcessCmdKey(ref msg, keyData));
        }