示例#1
0
 void Display_Click(object sender, EventArgs e)
 {
     // Checks if there are any orders to display
     if (stuList.Count > 0)
     {
         DisplayStudents disord = new DisplayStudents(stuList);
         {
             Height = 750;
         };
         disord.ShowDialog();    // displays the new form
     }
     else
     {
         MessageBox.Show("There are no students to display", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }
示例#2
0
        private void btn_display_Click(object sender, EventArgs e)
        {
            DisplayStudents df = new DisplayStudents(stuList);

            df.ShowDialog();
        }