Пример #1
0
        private void activiteitenlijstToolStripMenuItem_Click(object sender, EventArgs e)
        {
            panel1.Controls.Clear();
            groupBox1.Text = "Activity List";
            panel1.Controls.Add(SomerenUI.showActivity());

            panel1.Controls.Add(activityAddBtn);
            panel1.Controls.Add(activityDeleteBtn);
            panel1.Controls.Add(activityUpdateBtn);
            panel1.Controls.Add(activityRefreshBtn);
            panel1.Controls.Add(activityIdBox);
            panel1.Controls.Add(activityDescBox);
            panel1.Controls.Add(activityStudBox);
            panel1.Controls.Add(activitySuperBox);
            panel1.Controls.Add(activityIdLbl);
            panel1.Controls.Add(activityStuLbl);
            panel1.Controls.Add(activityDescLbl);
            panel1.Controls.Add(activitySupLbl);
            panel1.Controls.Add(LblInstructions);
        }
Пример #2
0
        private void activityRefreshBtn_Click(object sender, EventArgs e)
        {
            panel1.Controls.Clear();                       // clear stuff on panel1
            groupBox1.Text = "Activity List";              // set title of groupbox
            panel1.Controls.Add(SomerenUI.showActivity()); // show table in panel1

            // add buttons and labels to the panel after refreshing the list
            panel1.Controls.Add(activityAddBtn);
            panel1.Controls.Add(activityDeleteBtn);
            panel1.Controls.Add(activityUpdateBtn);
            panel1.Controls.Add(activityRefreshBtn);
            panel1.Controls.Add(activityIdBox);
            panel1.Controls.Add(activityDescBox);
            panel1.Controls.Add(activityStudBox);
            panel1.Controls.Add(activitySuperBox);
            panel1.Controls.Add(activityIdLbl);
            panel1.Controls.Add(activityStuLbl);
            panel1.Controls.Add(activityDescLbl);
            panel1.Controls.Add(activitySupLbl);
            panel1.Controls.Add(LblInstructions);
        }