You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
903 B
34 lines
903 B
using QwirkleClassLibrary;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace QwirkleConsoleApp
|
|
{
|
|
class NotificationClass
|
|
{
|
|
public void NotificationMessagePlayer(object? sender, AddPlayerNotifiedEventArgs args)
|
|
{
|
|
int t = args.numberBack;
|
|
|
|
switch (t)
|
|
{
|
|
case 0:
|
|
Console.WriteLine("Player as correctly add");
|
|
break;
|
|
case 1:
|
|
Console.WriteLine("ERROR : The name is null or white space");
|
|
break;
|
|
case 2:
|
|
Console.WriteLine("ERROR : The game is full");
|
|
break;
|
|
case 3:
|
|
Console.WriteLine("ERROR : Name exist");
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|