Exemple #1
0
        public void DisplayCritterListTestOnNullCritterList()
        {
            List<PictureBox> testPictureBoxList = new List<PictureBox>();
            List<Critter> testCritterList = new List<Critter>();
            PictureDisplay testMachine = new PictureDisplay(testPictureBoxList);

            testMachine.displayCritterList(testCritterList);
        }
Exemple #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            pictureBoxList.Add(pictureBox1);
            pictureBoxList.Add(pictureBox2);
            pictureBoxList.Add(pictureBox3);
            pictureBoxList.Add(pictureBox4);

            mainCatalogue = new CritterCatalogue("animalList.txt");
            pictureDisplayMachine = new PictureDisplay(pictureBoxList);
            textDisplayMachine = new TextDisplay(listBox1);

            displayMachine = pictureDisplayMachine; // default
        }
Exemple #3
0
        private void Form1_Load(object sender, EventArgs e)
        {
            pictureBoxList.Add(pictureBox1);
            pictureBoxList.Add(pictureBox2);
            pictureBoxList.Add(pictureBox3);
            pictureBoxList.Add(pictureBox4);

            mainCatalogue         = new CritterCatalogue("animalList.txt");
            pictureDisplayMachine = new PictureDisplay(pictureBoxList);
            textDisplayMachine    = new TextDisplay(listBox1);

            displayMachine = pictureDisplayMachine; // default
        }