示例#1
0
        //shwos the list of instructors
        private void showInstructors()
        {
            lbInstructors.Items.Clear();

            foreach (Instructor instructor in Instructors.GetUnassignedInstructors().OrderByDescending(i => i.Profile.Age))
            {
                lbInstructors.Items.Add(instructor);
            }
        }
示例#2
0
        public PageFlightSchools()
        {
            this.AllInstructors = new ObservableCollection <Instructor>();
            this.FlightSchools  = new ObservableCollection <FlightSchool>();

            Instructors.GetUnassignedInstructors().ForEach(i => this.AllInstructors.Add(i));
            GameObject.GetInstance().HumanAirline.FlightSchools.ForEach(f => this.FlightSchools.Add(f));

            this.Loaded += PageFlightSchools_Loaded;
            InitializeComponent();
        }