mirror of
https://github.com/bvanroll/cs-oo-project.git
synced 2025-08-29 03:52:45 +00:00
test ding
This commit is contained in:
@@ -17,18 +17,16 @@ namespace GUI_Gokkantoor
|
||||
public LogicLayer l;
|
||||
public Login(LogicLayer l)
|
||||
{
|
||||
l = new LogicLayer();
|
||||
this.l = l;
|
||||
InitializeComponent();
|
||||
listBox1.DataSource = l.persons;
|
||||
listBox1.DataSource = l.persons;
|
||||
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
Person p = (Person)listBox1.SelectedItem;
|
||||
|
||||
|
||||
|
||||
|
||||
Gokspel a = new Gokspel(l,p);
|
||||
this.Hide();
|
||||
a.FormClosed += adminClosed;
|
||||
|
41
Online Gokkantoor/Globals/Classes/ploegInMatch.cs
Normal file
41
Online Gokkantoor/Globals/Classes/ploegInMatch.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using Globals.classes;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Globals.Classes
|
||||
{
|
||||
public class PloegInMatch : Ploeg
|
||||
{
|
||||
|
||||
|
||||
public int score;
|
||||
|
||||
public PloegInMatch(int score)
|
||||
{
|
||||
this.score = score;
|
||||
}
|
||||
|
||||
public override zegMijnNaam(string naam)
|
||||
{
|
||||
return "blabla " + naam;
|
||||
}
|
||||
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
return base.Equals(obj);
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return base.GetHashCode();
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return base.ToString();
|
||||
}
|
||||
}
|
||||
}
|
@@ -34,6 +34,7 @@
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Classes\ploegInMatch.cs" />
|
||||
<Compile Include="MyClass.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Classes\Bet.cs" />
|
||||
|
@@ -5,10 +5,5 @@ namespace Globals.Interfaces
|
||||
{
|
||||
int Id { get; set; }
|
||||
string naam { get; set; }
|
||||
int score { get; }
|
||||
bool scoreSet { get; }
|
||||
event EventHandler scoreChanged;
|
||||
void setScore(int i);
|
||||
int getScore();
|
||||
}
|
||||
}
|
||||
|
@@ -110,11 +110,13 @@ namespace Logic
|
||||
|
||||
public Person getPerson(int id)
|
||||
{
|
||||
foreach (Person b in persons)
|
||||
{
|
||||
if (b.Id == id) return b;
|
||||
}
|
||||
throw new Exception("No bets found with that id");
|
||||
return persons.FindLast(x => id == x.Id);
|
||||
|
||||
}
|
||||
|
||||
public List<Person> filter(List<Person> p)
|
||||
{
|
||||
return filter(p);
|
||||
}
|
||||
|
||||
public Ploeg getPloeg(int id)
|
||||
|
Reference in New Issue
Block a user