private void InsertTicket_Shown(object sender, EventArgs e) { RefundTime RefundTime = new RefundTime(); DialogResult result1 = MessageBox.Show("A green light turns on near the ticket slot. This message signifies the stage where a user is inserting their ticket into the machine. OK simulates having inserted the card. Cancel simulates having taken no action.", "Simulation Message", MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation); if (result1 == DialogResult.OK) { RefundTime.back = choice; this.Close(); RefundTime.Show(); } }
private void InsertTicket_Shown(object sender, EventArgs e) { RefundTime RefundTime = new RefundTime(); DialogResult result1 = MessageBox.Show("A green light turns on near the ticket slot. This message signifies the stage where a user is inserting their ticket into the machine. OK simulates having inserted the card. Cancel simulates having taken no action.", "Simulation Message", MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation); if (result1 == DialogResult.OK) { RefundTime.back = choice; this.Close(); RefundTime.Show(); } }
public void CloseRefunding() { backRefund.Show(); backRefund.CloseRefundTime(); this.Close(); }