public ResultWindow(Game game, MainWindow mainWindow)
        {
            this.Game = game;
            this.MainWindow = mainWindow;

            this.Game.State = GameState.ScoreViewing;
            this.Game.Sounds.playTheme();

            this.show();
        }
        public GameWindow(Game game, MainWindow mainWindow)
        {
            this.Game = game;
            this.MainWindow = mainWindow;
            this.MainScaleTransform = new ScaleTransform(0.3, 0.3, 0, 0);

            this.Game.State = GameState.NameFilling;
            this.Game.Sounds.playTheme();

            show();
        }
        public WelcomeWindow(Game game, MainWindow mainWindow)
        {
            this.Game = game;
            this.MainWindow = mainWindow;
            this.MainScaleTransform = new ScaleTransform(0.3, 0.3, 0, 0);

            //test gesture
            var border = new Border();
            var tap = new TapProcessor();
            border.AddGesture(tap);

            this.Game.State = GameState.Sleeping;
            this.Game.Sounds.playTheme();

            show();
        }
        public PlayingGameWindow(Game game, MainWindow mainWindow)
        {
            this.Game = game;
            this.Game.Timer.Dispatcher.Tick += Dispatcher_Tick;
            this.Game.Timer.FinalTick += Timer_FinalTick;
            this.Game.Scores.ScoreUpdate += Scores_ScoreUpdate;
            this.Game.ResourceManager.ResourceProduction += ResourceManager_ResourceProduction;
            this.Game.ResourceManager.ResourceStock += ResourceManager_ResourceStock;
            this.MainWindow = mainWindow;

            this.Game.State = GameState.Playing;
            this.Game.Sounds.playTheme();

            this.MainScaleTransform = new ScaleTransform(0.3, 0.3, 0, 0);

            //Widgets
            this.actionHistoryLabels = new List<Label>();
            this.ressourcesSituationLabels = new List<Label>();

            show();
            this.Game.start();
        }