コード例 #1
0
        //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;
        }
コード例 #2
0
 private void toolStripMenuItem9_Click(object sender, EventArgs e)
 {
     SomerenUI.showStudents();
 }
コード例 #3
0
 private void toolStripMenuItem6_Click(object sender, EventArgs e)
 {
     this.panel1.Controls.Clear();
     this.groupBox1.Text = "Studenten";
     this.panel1.Controls.Add(SomerenUI.showStudents());
 }
コード例 #4
0
 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
 }