/// <summary>
        /// Takes the fields collected here and re-forms them into data that can be used by the 4th layer
        /// </summary>
        public void GenerateApplications()
        {
            List <Application> LocalList = Application.ToList <Application>();

            for (int iCount = 0; iCount < Users.Count; iCount++)
            {
                GradApplication temp;

                DateTime       AppDate     = (DateTime)LocalList[iCount].ApplicationDate;                                                                                                                          //Collect app date
                String         Enum        = LocalList[iCount].Enum;                                                                                                                                               //Collect Enum
                List <Address> AddressTemp = LocalList[iCount].Address.ToList <Address>();
                Shared.Address addr        = new Shared.Address(AddressTemp[0].Street1, AddressTemp[0].Street2, AddressTemp[0].City, AddressTemp[0].State, int.Parse(AddressTemp[0].Zip), AddressTemp[0].Country); //Collect Addr
                Shared.Student stu         = new Shared.Student(Enum, "not necessary", "not necessary", "not necessary", 0, "not necessary", addr, new Shared.Concentration());                                    //setup student object to be passed, pretty much only need the addr for this
                temp = new GradApplication(new Shared.Concentration(), AppDate, Enum, stu);

                Apps.Add(temp);
            }
        }
示例#2
0
 public AbstractReview(Student SubjectIn, DateTime DateIn)
 {
     Subject    = SubjectIn; //Replace with a call to the copy constructor later
     ReviewDate = DateIn;
 }//end AbstractReview(Student, DateIn)