Ejemplo n.º 1
0
        public void welcomeWindow()
        {
            //Clean a possible previous game
            this.WelcomeWindow = null;
            this.GameWindow = null;
            this.PlayingGameWindow = null;
            this.ResultWindow = null;
            GC.Collect();
            GC.WaitForPendingFinalizers();

            this.WelcomeWindow = new WelcomeWindow(this.Game, this);
        }
        public DisturbanceRepartition(PlayingGameWindow mainWindow, Game game, Disturbance disturbance)
        {
            this.MainWindow = mainWindow;
            this.Game = game;
            this.Disturbance = disturbance;
            this.labelList = new List<Label>();
            this.textBlockList = new List<TextBox>();

            //timer
            this.Timer = new Timer(this.Game, 0, 0, 6);
            this.Timer.FinalTick += Timer_FinalTick;
            this.Timer.Dispatcher.Tick += Dispatcher_Tick;
        }
Ejemplo n.º 3
0
 public void playingGameWindow()
 {
     this.PlayingGameWindow = new PlayingGameWindow(this.Game, this);     
 }