Beispiel #1
0
        public void TestSectionForm()
        {
            R2Section   section = new R2Section();
            SectionForm form    = new SectionForm();

            form.Show(section);
        }
 public void AddSection(SectionForm se, int facid)
 {
     var newSection = Mapper.Map<Section>(se);
     newSection.Faculty = ds.Faculty.Find(facid);
     newSection.Subject = se.sub;
     ds.Sections.Add(newSection);
     ds.SaveChanges();
     IEnumerable<Section> tempsec = ds.Sections.AsEnumerable<Section>();
     int secid = tempsec.Last<Section>().Id;
     AddCalendars(secid, facid);
 }
 public SectionForm addSectionForm()
 {
     SectionForm sb = new SectionForm();
     sb.fact = ds.Faculty.AsEnumerable<Faculty>();
     return sb;
 }