Ejemplo n.º 1
0
 //private DialogBox dialog;
 public GameWindow(MainWindow parent)
 {
     this.parent = parent;
     InitializeComponent();
     this.game = new Game();
     this.showQuestion();
     this.labels = new Label[18] {
         label1, label2, label3, label4, label5, label6, label7, label8,
         label9, label10, label11, label12, label13, label14, label15, label16, label17, label18,
     };
     this.labels[0].Foreground = Brushes.Turquoise;
     this.removeAnswerHelpsLeftLabel.Content = Game.REMOVE_INCORRECT_ANSWERS_HELPS;
 }
Ejemplo n.º 2
0
        private void restart()
        {
            this.game = new Game();
            InitializeComponent();
            this.labels = new Label[18] {
                label1, label2, label3, label4, label5, label6, label7, label8,
                label9, label10, label11, label12, label13, label14, label15, label16, label17, label18,
            };

            foreach (Label l in labels)
            {
                l.Foreground = (Brush)new BrushConverter().ConvertFrom("#FF373737");
            }
            labels[0].Foreground = Brushes.Turquoise;
            this.showQuestion();
            this.shiftHelpButton.IsEnabled = true;
            this.helpRemoveButton.IsEnabled = true;
            this.removeAnswerHelpsLeftLabel.Content = Game.REMOVE_INCORRECT_ANSWERS_HELPS;
            this.changeQuestionHelpsLeft.Content = Game.CHANGE_QUESTION_HELPS;
        }