// Tách phiếu thu private void btnSplitBill_Click(object sender, EventArgs e) { try { frmTsk_SplitBill_Step1 afrmTsk_SplitBill_Step1 = new frmTsk_SplitBill_Step1(this, this.aNewPaymentEN); afrmTsk_SplitBill_Step1.ShowDialog(); } catch (Exception ex) { MessageBox.Show("frmTsk_PaymentStep2.btnSplitBill_Click\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public frmTsk_SplitBill_Step2(frmTsk_SplitBill_Step1 afrmTsk_SplitBill_Step1, NewPaymentEN aNewPaymentEN) { InitializeComponent(); this.afrmTsk_SplitBill_Step1 = afrmTsk_SplitBill_Step1; this.aNewPaymentEN = aNewPaymentEN; }