Inheritance: INotifyPropertyChanged
Ejemplo n.º 1
0
        public PageShowFlightSchool(FlightSchool fs)
        {
            this.FlightSchool = new FlightSchoolMVVM(fs);
            this.DataContext  = this.FlightSchool;

            setHireStudentsStatus();

            InitializeComponent();
        }
        public PageShowFlightSchool(FlightSchool fs)
        {
            FlightSchool = new FlightSchoolMVVM(fs);
            Instructors = new ObservableCollection<Instructor>();
            AirlinerFamilies =
                AirlinerTypes.GetTypes(
                    t =>
                        t.Produced.From.Year <= GameObject.GetInstance().GameTime.Year
                        && t.Produced.To > GameObject.GetInstance().GameTime.AddYears(-30))
                    .Select(t => t.AirlinerFamily)
                    .Distinct()
                    .OrderBy(a => a)
                    .ToList();

            DataContext = FlightSchool;

            setHireStudentsStatus();

            InitializeComponent();
        }