Example #1
0
        internal GameBoard(ViewController viewcontrol)
        {
            this.InitializeComponent();
            this.viewcontrol = viewcontrol;
            vakImageLijst = new List<Image>();
            dobbelsteenImages = new List<ImageSource>();

            groenFinishImages = new List<Image>();
            roodFinishImages = new List<Image>();
            blauwFinishImages = new List<Image>();
            geelFinishImages = new List<Image>();

            groenThuisImages = new List<Image>();
            roodThuisImages = new List<Image>();
            blauwThuisImages = new List<Image>();
            geelThuisImages = new List<Image>();

            List<Speler> spelers = viewcontrol.Spel.Spelers;

            GroenLabel.Content = spelers[0].Naam;
            RoodLabel.Content = spelers[1].Naam;
            BlauwLabel.Content = spelers[2].Naam;
            GeelLabel.Content = spelers[3].Naam;
        }
Example #2
0
 internal CheatWindow(ViewController viewcontrol)
 {
     this.viewcontrol = viewcontrol;
     InitializeComponent();
 }
Example #3
0
 private void spelVerlatenClicked(object sender, RoutedEventArgs e)
 {
     Viewcontrol = null;
     MainWindow mainscreen = new MainWindow();
     mainscreen.Visibility = System.Windows.Visibility.Visible;
     this.Close();
 }