예제 #1
0
        private void button14_Click_1(object sender, EventArgs e)
        {
            try
            {
                frmCategorylist pre = new frmCategorylist();
                pre.txtsubTotal.Text   = txtTotal.Text;
                pre.txtDiscount.Text   = txtDiscount.Text;
                pre.txtCashresive.Text = txtPay.Text;
                pre.txtcashReturn.Text = txtBack.Text;
                pre.txtAmount.Text     = txtAmount.Text;

                pre.txtsubReal.Text        = (Convert.ToDouble(txtTotal.Text) * Convert.ToDouble(txtexchage.Text)).ToString();
                pre.txtdiscountcash.Text   = (Convert.ToDouble(txt_cash_discount.Text) * Convert.ToDouble(txtexchage.Text)).ToString();
                pre.txtamountReal.Text     = (Convert.ToDouble(txtAmount.Text) * Convert.ToDouble(txtexchage.Text)).ToString();
                pre.txtResivereal.Text     = (Convert.ToDouble(txtPay.Text) * Convert.ToDouble(txtexchage.Text)).ToString();
                pre.txtcashreturnReal.Text = (Convert.ToDouble(txtBack.Text) * Convert.ToDouble(txtexchage.Text)).ToString();
                pre.ShowDialog();

                if (pre.print != "1")
                {
                    Payment_print();
                }
                else
                {
                }
            }
            catch
            {
            }
        }
예제 #2
0
        private void button11_Click(object sender, EventArgs e)
        {
            frmCategorylist catlist = new frmCategorylist();

            catlist.ShowDialog();
        }