private void btnPayment_Click(object sender, EventArgs e) { ReceiptForm payment = FormPool.ReceiptForm; payment.FormClosed += (s, args) => this.Close(); payment.Show(); this.Hide(); }
private void btnBack_Click(object sender, EventArgs e) { ReceiptForm catchReceiptForm = FormPool.ReceiptForm; this.Hide(); catchReceiptForm.Show(); catchReceiptForm.FormClosed += (s, args) => this.Close(); }