Пример #1
0
        private void ToonVak(Vak vak)
        {
            resultTextBox.Clear();

            resultTextBox.AppendText("Vakgegevens voor " + vak.Naam);
            resultTextBox.AppendText(Environment.NewLine);
            resultTextBox.AppendText(Environment.NewLine);
            resultTextBox.AppendText("Docent: " + vak.Docent);
            resultTextBox.AppendText(Environment.NewLine);
            resultTextBox.AppendText("Uren: " + vak.Uren);
        }
Пример #2
0
        public Form1()
        {
            InitializeComponent();
            vakDict = new Dictionary <string, Vak>();
            vakList = new List <Vak>();

            for (int i = 0; i < 1000000; i++)
            {
                vakDict.Add("Vak" + i, new Vak("Vak" + i, "Docent" + i, 5));
                vakArray[i] = new Vak("Vak" + i, "Docent" + i, 5);
                vakList.Add(new Vak("Vak" + i, "Docent" + i, 5));
            }
        }