63 lines
1.7 KiB
C#
63 lines
1.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Data;
|
|
using System.Windows.Documents;
|
|
using System.Windows.Input;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media.Imaging;
|
|
using System.Windows.Navigation;
|
|
using System.Windows.Shapes;
|
|
|
|
namespace eDosStation
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for MainWindow.xaml
|
|
/// </summary>
|
|
public partial class MainWindow : Window
|
|
{
|
|
public Station thisStation = new Station("");
|
|
public EpdBaseClr.Epd2 ep=null;
|
|
|
|
public MainWindow()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void Button_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
var w = new ShowEPDDose(ep, thisStation);
|
|
w.ShowDialog();
|
|
}
|
|
|
|
private void BEntry_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
var w = new EntryBadge(ep, thisStation);
|
|
w.ShowDialog();
|
|
w = null;
|
|
}
|
|
|
|
private void BExit_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
var w = new EpdExit(ep, thisStation);
|
|
w.ShowDialog();
|
|
w = null;
|
|
}
|
|
|
|
private void MenuItem_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
Settings s = new Settings();
|
|
s.ShowDialog();
|
|
}
|
|
|
|
private void Window_Loaded(object sender, RoutedEventArgs e)
|
|
{
|
|
thisStation = new Station("");
|
|
ep = new EpdBaseClr.Epd2(thisStation.ComPort);
|
|
}
|
|
}
|
|
}
|