43 lines
1003 B
C#
43 lines
1003 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace HCI_Coursework_EVCHARGE
|
|
{
|
|
public partial class TapCard : Form
|
|
{
|
|
String bay;
|
|
String vehicle;
|
|
String duration;
|
|
|
|
public TapCard(string bay, string vehicle, string duration)
|
|
{
|
|
InitializeComponent();
|
|
this.bay = bay;
|
|
this.vehicle = vehicle;
|
|
this.duration = duration;
|
|
}
|
|
|
|
private void pictureBox_Click(object sender, EventArgs e)
|
|
{
|
|
Charging charging = new Charging(bay, vehicle, duration);
|
|
charging.Show();
|
|
charging.FormClosed += delegate
|
|
{
|
|
charging = null;
|
|
};
|
|
}
|
|
|
|
private void backButton_Click(object sender, EventArgs e)
|
|
{
|
|
Close();
|
|
}
|
|
}
|
|
}
|