Exemple #1
0
        private void handleData(Dictionary <string, string> dictionary)
        {
            Console.WriteLine("Data parsed and receive succesful");
            if (dictionary.ContainsKey("Game Type"))
            {
                string    title = dictionary["Game Type"];
                DBWrapper db    = new DBWrapper();
                switch (title)
                {
                case "!SAY":
                    SimonORM sayData = new SimonORM(dictionary);
                    db.AddSimonData(sayData);
                    break;

                case "!MAZ":
                    MazeORM mazData = new MazeORM(dictionary);
                    db.AddMazeData(mazData);
                    break;
                }
            }
        }