Exemplo n.º 1
0
        public ArrivingFlightListViewModel(IFlightData flightData)
        {
            if (flightData == null)
            {
                throw new ArgumentNullException("flightData");
            }

            this._flightData = flightData;

            this._flightsViewSource.SortDescriptions.Insert(0, new SortDescription("ArrivalDateTime", ListSortDirection.Ascending));
        }
Exemplo n.º 2
0
        public MainViewModel(IFlightData flightData)
        {
            if (flightData == null)
            {
                throw new ArgumentNullException("flightData");
            }

            this._flightData = flightData;

            this.Flights = new ObservableCollection <Flight>();
            InitializeFlights();
        }
Exemplo n.º 3
0
 // constructor
 public FlightControl()
 {
     this.speed      = 1;
     this.timestep   = 0;
     this.numLines   = 0;
     this.isReverse  = false;
     this.stop       = true;
     this.pilot      = new SimplePilot();
     this.flightdata = new FlightData();
     this.research   = new Research();
     this.paths      = new PathInfo();
 }
Exemplo n.º 4
0
 public abstract IFlightData[] GetList(IFlightData args, ISearchData searchData);
Exemplo n.º 5
0
 public FlightController()
 {
     data = new FlightData();
 }
Exemplo n.º 6
0
 public FlightManager()
 {
     this.flightData = dataFactory.CreateFlightData();
     this.backupData = dataFactory.CreateBackupData();
 }
Exemplo n.º 7
0
 public FlightImpl(ProxyFlight proxyFlight, IFlightData flightData)
 {
     proxyFlight_ = proxyFlight;
     FlightData   = flightData;
 }