コード例 #1
0
 private void AddModuleLevel6Button_Click(object sender, EventArgs e)
 {
     if (course.getModuleCount(Level.LEVEL_6) < 8 && level6Group.credits < 120)
     {
         AddModule form = new AddModule(new FormClosedEventHandler(level6tab_updateOnClose), course, Level.LEVEL_6, 120 - level6Group.credits);
         form.Show();
     }
     else
     {
         MessageBox.Show("Course/credit limit reached. \nDelete a module or change credits to continue.", "Limit", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }
コード例 #2
0
 private void AddModuleLevel5Button_Click(object sender, EventArgs e)
 {
     if (course.getModuleCount(Level.LEVEL_5) < 8 && level5Group.credits < 120)
     {
         AddModule form = new AddModule(new FormClosedEventHandler(level5tab_updateOnClose), course, Level.LEVEL_5, 120 - level5Group.credits);
         form.Show();
     }
     else
     {
         MessageBox.Show("Course/credit limit reached. \nDelete a module or change credits to continue.", "Limit", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }
コード例 #3
0
 public void moduleEdit_Click(object sender, EventArgs args)
 {
     AddModule form = new AddModule(updateTabFCEH, course, level, maxcredit, module);
     form.Show();
 }
コード例 #4
0
        public void moduleEdit_Click(object sender, EventArgs args)
        {
            AddModule form = new AddModule(updateTabFCEH, course, level, maxcredit, module);

            form.Show();
        }