code with Erreur

pull/3/head
Najlae LAMBARAA 3 years ago
parent 31378d7352
commit 481382d063

@ -6,7 +6,11 @@ using System.Threading.Tasks;
namespace Data namespace Data
{ {
internal interface IDataManager public interface IDataManager
{ {
public void AddDice();
public void RemoveDice();
public void clear();
public void AddDices();
} }
} }

@ -1,4 +1,5 @@
using System; using System;
using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
@ -6,7 +7,17 @@ using System.Threading.Tasks;
namespace Model namespace Model
{ {
internal class Manager public class Manager
{ {
List<Die> listDices = new List<Die>();
public void AddDice(Die d)
{
listDices.Add(d);
}
public void RemoveDice(Die d)
{
listDices.Remove(d);
}
} }
} }

Loading…
Cancel
Save