示例#1
0
        //==================BUTTON IMAGE CASH ==========================================
        private void b_cash2_Click(object sender, EventArgs e)
        {
            String  a  = "cash";
            payment py = new payment(f1);

            py.aksi_total(total, a, the_real_diskon, tot_diskon2);
            py.id_trans = l_transaksi2.Text;
            //py.new_total = l_total2.Text;
            py.cust_Id = t_cust.Text;
            py.ShowDialog();
        }
示例#2
0
        //=============================================================================================================================
        public void ClickButton2(Object sender, System.EventArgs e)
        {
            //==MENGEMBALIKAN FOCUS KE TEXTBOXT CUSTOMER ID
            this.ActiveControl = t_cust;
            t_cust.Focus();
            //============================================
            Button btn = (Button)sender;
            String a   = btn.Text;
            String b   = "quick_cash";
            //MessageBox.Show("You clicked character [" + a + "]");
            payment py = new payment(f1);

            py.quick_cash(a);
            py.aksi_total(total, b, the_real_diskon, tot_diskon2);
            //py.textBox1.Text = "aaaaa";
            py.id_trans  = l_transaksi2.Text;
            py.new_total = l_total2.Text;
            py.cust_Id   = t_cust.Text;
            py.ShowDialog();
        }