Exemple #1
0
        private void SetItemSource()
        {
            List <ProblemList> source = new List <ProblemList>();

            //General
            source.Add(new ProblemList("assembly", "general"));

            //Internet
            source.Add(new ProblemList("main network", "internet & network"));
            source.Add(new ProblemList("wi-fi", "internet & network"));
            source.Add(new ProblemList("logging in", "internet & network"));
            source.Add(new ProblemList("accessing files", "internet & network"));

            //Peripherals
            source.Add(new ProblemList("printers", "peripherals"));
            source.Add(new ProblemList("projectors", "peripherals"));
            source.Add(new ProblemList("whiteboards", "peripherals"));
            source.Add(new ProblemList("sound", "peripherals"));
            source.Add(new ProblemList("mice", "peripherals"));
            source.Add(new ProblemList("keyboards", "peripherals"));

            //Computers
            source.Add(new ProblemList("computer not starting", "computers"));
            source.Add(new ProblemList("computer running slow", "computers"));
            source.Add(new ProblemList("surfaces & trollies", "computers"));
            source.Add(new ProblemList("school laptops", "computers"));
            source.Add(new ProblemList("software request", "computers"));

            //Office 365
            source.Add(new ProblemList("metro central", "office 365"));
            source.Add(new ProblemList("onedrive", "office 365"));
            source.Add(new ProblemList("yammer", "office 365"));
            source.Add(new ProblemList("e-mails", "office 365"));
            source.Add(new ProblemList("office online", "office 365"));
            source.Add(new ProblemList("onenote", "office 365"));
            source.Add(new ProblemList("office 365 other", "office 365"));

            //Other
            source.Add(new ProblemList("other", "other"));

            List <AlphaKeyGroup <ProblemList> > itemSource = AlphaKeyGroup <ProblemList> .CreateGroups(source,
                                                                                                       CultureInfo.CurrentUICulture,
                                                                                                       s => s.ProblemName, true);

            ((CollectionViewSource)Resources["ProblemGroups"]).Source = itemSource;
        }
Exemple #2
0
        private void SetItemSource()
        {
            List <RoomList> source = new List <RoomList>();

            //North Rooms - Classrooms
            source.Add(new RoomList("N01", "North"));
            source.Add(new RoomList("N02", "North"));
            source.Add(new RoomList("N03", "North"));
            source.Add(new RoomList("N04", "North"));
            source.Add(new RoomList("N05", "North"));
            source.Add(new RoomList("N06", "North"));
            source.Add(new RoomList("N07", "North"));
            source.Add(new RoomList("N08", "North"));
            source.Add(new RoomList("N09", "North"));
            source.Add(new RoomList("N10", "North"));
            source.Add(new RoomList("N11", "North"));
            source.Add(new RoomList("N12", "North"));
            source.Add(new RoomList("N13", "North"));
            source.Add(new RoomList("N14", "North"));
            source.Add(new RoomList("N15", "North"));
            source.Add(new RoomList("N16", "North"));
            source.Add(new RoomList("N17", "North"));
            source.Add(new RoomList("N18", "North"));
            source.Add(new RoomList("N19", "North"));
            source.Add(new RoomList("N20", "North"));
            source.Add(new RoomList("N21", "North"));

            //North Rooms - Offices
            source.Add(new RoomList("Reception", "North"));
            source.Add(new RoomList("Data Office", "North"));
            source.Add(new RoomList("Sick Bay", "North"));
            source.Add(new RoomList("IAG/Careers Office", "North"));
            source.Add(new RoomList("Principal's Office", "North"));
            source.Add(new RoomList("Conference Room", "North"));
            source.Add(new RoomList("Reprographics Office", "North"));
            source.Add(new RoomList("Attendance Office", "North"));
            source.Add(new RoomList("Finance Office", "North"));
            source.Add(new RoomList("SENCO Office", "North"));
            source.Add(new RoomList("ICT Strategy Office", "North"));
            source.Add(new RoomList("Personnel Office", "North"));
            source.Add(new RoomList("Exams Office", "North"));
            source.Add(new RoomList("School Counsellor", "North"));
            source.Add(new RoomList("North Hall", "North"));
            source.Add(new RoomList("Site Office", "North"));
            source.Add(new RoomList("IEU", "North"));
            source.Add(new RoomList("Abbey House Office", "North"));
            source.Add(new RoomList("Cheshire House Office", "North"));
            source.Add(new RoomList("Ellis House Office", "North"));
            source.Add(new RoomList("MacMillan House Office", "North"));
            source.Add(new RoomList("Hub", "North"));
            source.Add(new RoomList("Jackie Everett's Office", "North"));
            source.Add(new RoomList("Ian Cook's Office", "North"));
            source.Add(new RoomList("North Staff Room", "North"));
            source.Add(new RoomList("Cover Manager", "North"));
            source.Add(new RoomList("Gateway", "North"));
            source.Add(new RoomList("Computing/IT Office", "North"));

            //East Rooms - Classrooms
            source.Add(new RoomList("E01", "East"));
            source.Add(new RoomList("E02", "East"));
            source.Add(new RoomList("E03", "East"));
            source.Add(new RoomList("E04", "East"));
            source.Add(new RoomList("E05", "East"));
            source.Add(new RoomList("E06", "East"));
            source.Add(new RoomList("E07", "East"));
            source.Add(new RoomList("E08", "East"));
            source.Add(new RoomList("E09", "East"));
            source.Add(new RoomList("E10", "East"));

            //East Rooms - Offices
            source.Add(new RoomList("Art Department Office", "East"));
            source.Add(new RoomList("History Department Office", "East"));

            //Middle Rooms - Classrooms
            source.Add(new RoomList("MA", "Mobile"));
            source.Add(new RoomList("MB", "Mobile"));
            source.Add(new RoomList("M01", "Middle"));
            source.Add(new RoomList("M02", "Middle"));
            source.Add(new RoomList("M03", "Middle"));
            source.Add(new RoomList("M04", "Middle"));
            source.Add(new RoomList("M05", "Middle"));
            source.Add(new RoomList("M06", "Middle"));
            source.Add(new RoomList("M07", "Middle"));
            source.Add(new RoomList("M08", "Middle"));
            source.Add(new RoomList("M09", "Middle"));
            source.Add(new RoomList("M10", "Middle"));
            source.Add(new RoomList("M11", "Middle"));
            source.Add(new RoomList("M12", "Middle"));
            source.Add(new RoomList("M13", "Middle"));
            source.Add(new RoomList("M14", "Middle"));
            source.Add(new RoomList("M15", "Middle"));
            source.Add(new RoomList("M16", "Middle"));
            source.Add(new RoomList("M17", "Middle"));
            source.Add(new RoomList("M18", "Middle"));
            source.Add(new RoomList("M19", "Middle"));
            source.Add(new RoomList("M20", "Middle"));
            source.Add(new RoomList("M21", "Middle"));
            source.Add(new RoomList("M22", "Middle"));
            source.Add(new RoomList("M23", "Middle"));
            source.Add(new RoomList("M24", "Middle"));
            source.Add(new RoomList("M25", "Middle"));
            source.Add(new RoomList("M26", "Middle"));
            source.Add(new RoomList("M27", "Middle"));
            source.Add(new RoomList("M28", "Middle"));
            source.Add(new RoomList("M29", "Middle"));
            source.Add(new RoomList("M30", "Middle"));
            source.Add(new RoomList("M31", "Middle"));
            source.Add(new RoomList("M32", "Middle"));
            source.Add(new RoomList("M33", "Middle"));

            //Middle Rooms - Offices
            source.Add(new RoomList("Student Services", "Middle"));
            source.Add(new RoomList("Tech Office", "Middle"));
            source.Add(new RoomList("Middle Staff Room", "Middle"));

            //South Rooms - Classrooms
            source.Add(new RoomList("S01", "South"));
            source.Add(new RoomList("S02", "South"));
            source.Add(new RoomList("S03", "South"));
            source.Add(new RoomList("S04", "South"));
            source.Add(new RoomList("S05", "South"));
            source.Add(new RoomList("S07", "South"));
            source.Add(new RoomList("S08", "South"));
            source.Add(new RoomList("S09", "South"));
            source.Add(new RoomList("S10", "South"));
            source.Add(new RoomList("S11", "South"));
            source.Add(new RoomList("S12", "South"));
            source.Add(new RoomList("S13", "South"));
            source.Add(new RoomList("S14", "South"));
            source.Add(new RoomList("S15", "South"));
            source.Add(new RoomList("S16", "South"));
            source.Add(new RoomList("S17", "South"));
            source.Add(new RoomList("S18", "South"));
            source.Add(new RoomList("S19", "South"));
            source.Add(new RoomList("S20", "South"));
            source.Add(new RoomList("S25", "South"));
            source.Add(new RoomList("S26", "South"));
            source.Add(new RoomList("S27", "South"));

            //South Rooms - Offices
            source.Add(new RoomList("CLC", "South"));
            source.Add(new RoomList("Library", "South"));
            source.Add(new RoomList("Science Technicians", "South"));
            source.Add(new RoomList("Sixth Form Study Area", "South"));
            source.Add(new RoomList("Jeremy Dickson's Office", "South"));
            source.Add(new RoomList("Recording Studio", "South"));
            source.Add(new RoomList("Drama Studio", "South"));
            source.Add(new RoomList("Arts Office", "South"));
            source.Add(new RoomList("PE Office", "South"));
            source.Add(new RoomList("Adrian Fehners' Office", "South"));
            source.Add(new RoomList("South Staff Room", "South"));

            List <AlphaKeyGroup <RoomList> > itemSource = AlphaKeyGroup <RoomList> .CreateGroups(source,
                                                                                                 CultureInfo.CurrentUICulture,
                                                                                                 s => s.RoomName, true);

            ((CollectionViewSource)Resources["RoomGroups"]).Source = itemSource;
        }