Example #1
0
 public bool Registration(string name, string pass)
 {
     using (DataGame data = new DataGame())
     {
         return(data.Registration(name, pass));
     }
 }
Example #2
0
 public async Task <List <Game> > RefreshResult(User user)
 {
     using (DataGame dataGame = new DataGame())
     {
         Console.WriteLine(user.NickName + " Refresh result");
         return(await dataGame.RefreshResult(user));
     }
 }
Example #3
0
        public void EndGame(Game game)
        {
            if (CachData.Games.ContainsKey(game))
            {
                CachData.Games[game].CallBack1.EndGame(game);
                CachData.Games[game].CallBack2.EndGame(game);

                CachData.Games.Remove(game);

                DataGame dataGame = new DataGame();
                dataGame.EndGame(game);
            }
        }
Example #4
0
 public User Avtorisation(string name, string pass)
 {
     using (DataGame data = new DataGame())
     {
         User returnUser = data.Login(name);
         if (returnUser == null)
         {
             return(null);
         }
         if (CachData.UsersOnline.ContainsKey(returnUser))
         {
             return(null);
         }
         return(returnUser);
     }
 }
Example #5
0
        public void AddClan(Clan clan)
        {
            DataGame dataGame = new DataGame();

            dataGame.CreateClan(clan);
        }