diff --git a/Sources/MaSoluction/Data/IDataManager.cs b/Sources/MaSoluction/Data/IDataManager.cs index 90dae86..7afceac 100644 --- a/Sources/MaSoluction/Data/IDataManager.cs +++ b/Sources/MaSoluction/Data/IDataManager.cs @@ -6,7 +6,11 @@ using System.Threading.Tasks; namespace Data { - internal interface IDataManager + public interface IDataManager { + public void AddDice(); + public void RemoveDice(); + public void clear(); + public void AddDices(); } } diff --git a/Sources/MaSoluction/Model/Manager.cs b/Sources/MaSoluction/Model/Manager.cs index e88378b..fb76ac0 100644 --- a/Sources/MaSoluction/Model/Manager.cs +++ b/Sources/MaSoluction/Model/Manager.cs @@ -1,4 +1,5 @@ using System; +using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; @@ -6,7 +7,17 @@ using System.Threading.Tasks; namespace Model { - internal class Manager + public class Manager { + List listDices = new List(); + + public void AddDice(Die d) + { + listDices.Add(d); + } + public void RemoveDice(Die d) + { + listDices.Remove(d); + } } }