Пример #1
0
        private void psI_Button2_Click(object sender, EventArgs e)
        {
            Money cash  = new Money(textBoxCash.Text);
            Money total = new Money(textBoxSaleTotal.Text);

            if (total == 0)
            {
                xperdex.gui.Banner.Show("No items scanned\ncannot perform transaction");
                return;
            }

            if (cash < total)
            {
                xperdex.gui.Banner.Show("You need to put in at least as much cash as the sale total");
                return;
            }

            {
                PrintHeader(cash, total);

                channel2.EndTransaction();
                transaction_channel.CloseTransaction(transaction_client_token);

                ResetList();

                int global_transnum;
                int local_transnum;
                transaction_channel.OpenTransaction(transaction_client_token, out global_transnum, out local_transnum);
                channel2.BeginTransaction(global_transnum);
            }
        }
Пример #2
0
 private void button6_Click(object sender, EventArgs e)
 {
     OpenChannel2();
     channel2.BeginTransaction(1234);
 }