Example #1
0
        //Constructor
        public Game(string titel, string genre, string platform, decimal prijs, GamesApp gamesApp)
        {
            Titel = titel;
            Genre = genre;
            Platform = platform;
            Prijs = prijs;
            Observers = new List<Observer>();

            Observers.Add(gamesApp);
            Notify();
        }
Example #2
0
        public Form1()
        {
            InitializeComponent();

            gamesApp = new GamesApp(this);

            Game g = new Game("The Elder Scrolls V: Skyrim", "RPG", "PC", 40, gamesApp);
            Game x = new Game("Assassins Creed: Black Flag", "Action-Adventure", "PC", 30, gamesApp);
            Game y = new Game("Fallout 4", "RPG", "PC", 45, gamesApp);

            gamesApp.VoegGameToe(g);
            gamesApp.VoegGameToe(x);
            gamesApp.VoegGameToe(y);
        }
Example #3
0
 public GamesAppForm()
 {
     GamesApp = new GamesApp();
     InitializeComponent();
 }