From 68634123f9f18678dfa1c543db433f402c3bcb9a Mon Sep 17 00:00:00 2001 From: Andreas Date: Thu, 8 Dec 2022 12:26:05 +0100 Subject: [PATCH] Populated Table data --- .../OOP-Opdracht-CSharp-Alfa-2022.csproj | 4 ++++ .../OOP-Opdracht-CSharp-Alfa-2022/classes/Game.cs | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/OOP-Opdracht-CSharp-Alfa-2022/OOP-Opdracht-CSharp-Alfa-2022/OOP-Opdracht-CSharp-Alfa-2022.csproj b/OOP-Opdracht-CSharp-Alfa-2022/OOP-Opdracht-CSharp-Alfa-2022/OOP-Opdracht-CSharp-Alfa-2022.csproj index a71954c..f2e8eb1 100644 --- a/OOP-Opdracht-CSharp-Alfa-2022/OOP-Opdracht-CSharp-Alfa-2022/OOP-Opdracht-CSharp-Alfa-2022.csproj +++ b/OOP-Opdracht-CSharp-Alfa-2022/OOP-Opdracht-CSharp-Alfa-2022/OOP-Opdracht-CSharp-Alfa-2022.csproj @@ -6,4 +6,8 @@ OOP_Opdracht_CSharp_Alfa_2022 + + + + diff --git a/OOP-Opdracht-CSharp-Alfa-2022/OOP-Opdracht-CSharp-Alfa-2022/classes/Game.cs b/OOP-Opdracht-CSharp-Alfa-2022/OOP-Opdracht-CSharp-Alfa-2022/classes/Game.cs index 234a498..dcc5f58 100644 --- a/OOP-Opdracht-CSharp-Alfa-2022/OOP-Opdracht-CSharp-Alfa-2022/classes/Game.cs +++ b/OOP-Opdracht-CSharp-Alfa-2022/OOP-Opdracht-CSharp-Alfa-2022/classes/Game.cs @@ -21,5 +21,13 @@ namespace OOP_Opdracht_CSharp_Alfa_2022.classes return new KeyValuePair(); } + public Game() + { + table_data.Add(1, "Battlefield 2042"); + table_data.Add(2, "Counter-Strike: Global Offensive"); + table_data.Add(3, "Rust"); + + } + } }