//Door Juan private void kassaToolStripMenuItem_Click(object sender, EventArgs e) { this.panel1.Controls.Clear(); this.groupBox1.Text = "Studenten"; studentenList = SomerenUI.showStudents(); drankenList = SomerenUI.showDrankVoorraad(); drankenList.Location = new Point(85, 0); studentenList.HideSelection = false; studentenList.FullRowSelect = true; drankenList.HideSelection = false; drankenList.FullRowSelect = true; this.panel1.Controls.Add(studentenList); this.panel1.Controls.Add(drankenList); Button afrekenen = new Button(); afrekenen.Text = "Afrekenen"; this.panel1.Controls.Add(afrekenen); afrekenen.Location = new Point(490, 200); afrekenen.Click += afrekenenEvent; }
private void toolStripMenuItem9_Click(object sender, EventArgs e) { SomerenUI.showStudents(); }
private void toolStripMenuItem6_Click(object sender, EventArgs e) { this.panel1.Controls.Clear(); this.groupBox1.Text = "Studenten"; this.panel1.Controls.Add(SomerenUI.showStudents()); }
private void toolStripMenuItem6_Click(object sender, EventArgs e) { this.panel1.Controls.Clear(); // clear stuff on panel this.groupBox1.Text = "Students"; // set name for groupbox this.panel1.Controls.Add(SomerenUI.showStudents()); // add data to the panel }