Beispiel #1
0
        private void SaveAdviser()
        {
            AdviserModel adv = new AdviserModel();

            adv = CurrentAdviser;
            AdviserList.Add(adv);
        }
Beispiel #2
0
        public MainViewModel()
        {
            SubjectModel A1 = new SubjectModel()
            {
                Name = "Chemistry", SubjectCode = "111", Units = 3
            };
            SubjectModel A2 = new SubjectModel()
            {
                Name = "Algebra", SubjectCode = "222", Units = 3
            };
            SubjectModel A3 = new SubjectModel()
            {
                Name = "Calculus", SubjectCode = "333", Units = 3
            };
            SubjectModel A4 = new SubjectModel()
            {
                Name = "Differential Eq.", SubjectCode = "444", Units = 3
            };
            SubjectModel A5 = new SubjectModel()
            {
                Name = "Statics", SubjectCode = "555", Units = 3
            };
            SubjectModel A6 = new SubjectModel()
            {
                Name = "Dynamics", SubjectCode = "666", Units = 3
            };
            SubjectModel A7 = new SubjectModel()
            {
                Name = "Ciruits", SubjectCode = "777", Units = 3
            };
            SubjectModel A8 = new SubjectModel()
            {
                Name = "Sociology", SubjectCode = "888", Units = 3
            };
            SubjectModel A9 = new SubjectModel()
            {
                Name = "Physics", SubjectCode = "999", Units = 3
            };
            SubjectModel A10 = new SubjectModel()
            {
                Name = "Theology", SubjectCode = "101", Units = 3
            };

            SubjectList.Add(A1);
            SubjectList.Add(A2);
            SubjectList.Add(A3);
            SubjectList.Add(A4);
            SubjectList.Add(A5);
            SubjectList.Add(A6);
            SubjectList.Add(A7);
            SubjectList.Add(A8);
            SubjectList.Add(A9);
            SubjectList.Add(A10);

            StudentModel q = new StudentModel()
            {
                FirstName = "Gil", LastName = "Bancud", RequiredUnits = 6
            };

            StudentList.Add(q);

            SectionModel p = new SectionModel()
            {
                SectionName = "SEC1"
            };

            SectionList.Add(p);

            AdviserModel r = new AdviserModel()
            {
                LastName = "Adviser1"
            };

            AdviserList.Add(r);
        }