Example #1
0
        //private AirController _provider;
        //private ObservableCollection<Aircraft> _obs = new ObservableCollection<Aircraft>();

        public WindowController()
        {
            InitializeComponent();
            _map = mainMap;
            _map.CredentialsProvider = new ApplicationIdCredentialsProvider("");
            _map.Focus();
            var loop = new MainLoop()
            {
                Dispatcher = Dispatcher
            };

            MapController.Map = _map;
            MapController.CreateImages();
            MapController.AircraftList = loop.GetAircraftList();
            objectTracker.DataContext  = loop.GetAircraftList();
            FileHandler.CreateLocationFile();

            loop.StartSequence();
            details.ItemsSource = loop.GetAircraftList();
        }