Example #1
0
        protected void OnKeyPressEvent(object o, KeyPressEventArgs args)
        {
            if (args.Event.Key == Gdk.Key.F2) {
                labeltotalcompra.Text = pagototal.Trim ();
                frame1.Hide();
                this.entryPagoEfectivo.IsFocus = true;

            }
            if (args.Event.Key == Gdk.Key.F3) {
                PagoTarjetaDialog PagoTarjeta = new PagoTarjetaDialog (this, pagototal,listaPago_,usuario_);
                try {
                    PagoTarjeta.Run ();
                    PagoTarjeta.Destroy ();

                } catch (MySql.Data.MySqlClient.MySqlException ex) {
                    PagoTarjeta.Destroy ();
            #if DEBUG

                Console.WriteLine (ex.Message);
            #endif
                }
                this.buttonOk.IsFocus = true;
                ;

            }
            if (args.Event.Key == Gdk.Key.F4) {

                PagoChequeDialog PagoCheque = new PagoChequeDialog (this, pagototal, listaPago_, usuario_);
                try {
                    PagoCheque.Run ();
                    PagoCheque.Destroy ();

                } catch (MySql.Data.MySqlClient.MySqlException ex) {
                    PagoCheque.Destroy ();

            #if DEBUG
                    Console.WriteLine (ex.Message);
            #endif
                }
                this.buttonOk.IsFocus = true;
            }
        }
Example #2
0
        protected void OnButtonPagoChequeClicked(object sender, EventArgs e)
        {
            PagoChequeDialog PagoCheque = new PagoChequeDialog(this, pagototal, listaPago_, usuario_);
            try
            {
                PagoCheque.Run();
                PagoCheque.Destroy();

            }
            catch (MySql.Data.MySqlClient.MySqlException ex)
            {
                PagoCheque.Destroy();
            #if DEBUG
                Console.WriteLine(ex.Message);
            #endif
            }
            this.buttonOk.IsFocus=true;
        }