finish??
This commit is contained in:
42
HCI_Coursework_EVCHARGE/TapCard.cs
Normal file
42
HCI_Coursework_EVCHARGE/TapCard.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user