Esempio n. 1
0
        private void gridAttached_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            if (hasChanged)
            {
                MsgBox.Show(this, "Not allowed to edit individual requirements immediately after adding or removing.");
                return;
            }
            FormReqStudentEdit FormRSE = new FormReqStudentEdit();

            FormRSE.ReqCur = reqsAttached[e.Row];
            FormRSE.ShowDialog();
            if (FormRSE.DialogResult != DialogResult.OK)
            {
                return;
            }
            reqsAttached = ReqStudents.GetForAppt(AptNum);
            FillAttached();
        }
Esempio n. 2
0
 private void FormReqAppt_Load(object sender, EventArgs e)
 {
     _listSchoolClasses = SchoolClasses.GetDeepCopy();
     _listSchoolCourses = SchoolCourses.GetDeepCopy();
     for (int i = 0; i < _listSchoolClasses.Count; i++)
     {
         comboClass.Items.Add(SchoolClasses.GetDescript(_listSchoolClasses[i]));
     }
     if (comboClass.Items.Count > 0)
     {
         comboClass.SelectedIndex = 0;
     }
     for (int i = 0; i < _listSchoolCourses.Count; i++)
     {
         comboCourse.Items.Add(SchoolCourses.GetDescript(_listSchoolCourses[i]));
     }
     if (comboCourse.Items.Count > 0)
     {
         comboCourse.SelectedIndex = 0;
     }
     comboInstructor.Items.Add(Lan.g(this, "None"));
     comboInstructor.SelectedIndex = 0;
     _listProviders = Providers.GetDeepCopy(true);
     for (int i = 0; i < _listProviders.Count; i++)
     {
         comboInstructor.Items.Add(_listProviders[i].GetLongDesc());
         //if(ProviderC.List[i].ProvNum==ReqCur.InstructorNum) {
         //	comboInstructor.SelectedIndex=i+1;
         //}
     }
     FillStudents();
     FillReqs();
     reqsAttached = ReqStudents.GetForAppt(AptNum);
     if (reqsAttached.Count > 0)
     {
         comboInstructor.SelectedIndex = Providers.GetIndex(reqsAttached[0].ProvNum) + 1;            //this will turn a -1 into a 0.
     }
     FillAttached();
 }
Esempio n. 3
0
 private void FormReqAppt_Load(object sender, EventArgs e)
 {
     for (int i = 0; i < SchoolClasses.List.Length; i++)
     {
         comboClass.Items.Add(SchoolClasses.GetDescript(SchoolClasses.List[i]));
     }
     if (comboClass.Items.Count > 0)
     {
         comboClass.SelectedIndex = 0;
     }
     for (int i = 0; i < SchoolCourses.List.Length; i++)
     {
         comboCourse.Items.Add(SchoolCourses.GetDescript(SchoolCourses.List[i]));
     }
     if (comboCourse.Items.Count > 0)
     {
         comboCourse.SelectedIndex = 0;
     }
     FillStudents();
     FillReqs();
     TableAttached = ReqStudents.GetForAppt(AptNum);
     FillAttached();
 }