This commit is contained in:
Michiel.VanDorpe
2019-08-04 20:44:25 +02:00
parent b3a4a7441a
commit 41a10e710c
4 changed files with 27 additions and 5 deletions

View File

@@ -1,4 +1,5 @@
using Logic;
using Globals.classes;
using Logic;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -18,11 +19,17 @@ namespace GUI_Gokkantoor
{
l = new LogicLayer();
InitializeComponent();
listBox1.DataSource = l.persons;
}
private void button1_Click(object sender, EventArgs e)
{
Gokspel a = new Gokspel(l);
Person p = (Person)listBox1.SelectedItem;
Gokspel a = new Gokspel(l,p);
this.Hide();
a.FormClosed += adminClosed;
a.Show();
@@ -31,5 +38,10 @@ namespace GUI_Gokkantoor
{
this.Show();
}
private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
{
}
}
}