Files
2024-04-21 02:51:22 +01:00

51 lines
1.3 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Runtime.Remoting.Metadata.W3cXsd2001;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace HCI_Coursework_EVCHARGE
{
public partial class Payment : Form
{
String bay;
String vehicle;
String duration;
public Payment( String bay, String vehicle, String duration)
{
InitializeComponent();
this.bay = bay;
this.vehicle = vehicle;
this.duration = duration;
}
private void tapButton_Click(object sender, EventArgs e)
{
TapCard tapCard = new TapCard( bay, vehicle, duration );
tapCard.Show();
tapCard.FormClosed += delegate
{
tapCard = null;
};
}
private void account_Click(object sender, EventArgs e)
{
panel1.Visible = true;
}
private void confirmAccount_Click(object sender, EventArgs e)
{
Charging charging = new Charging( bay, vehicle, duration );
charging.Show();
charging.FormClosed += delegate
{
charging = null;
};
}
}
}