예제 #1
0
        internal AnalyzerWindow()
        {
            _instance = this;

            InitializeComponent();

            Activated += MainWindow_Activated;

            Closing += Window_Closing;
        }
예제 #2
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            /*
             * var a = Math2.GetPolarHeadingFromLine(new System.Drawing.PointF(
             * 3624, 736), new System.Drawing.PointF(
             *
             * 3636, 857));
             */

            /*
             * FlightPlan fp = new FlightPlan();
             * fp.LoadFromFile(@"c:\workspace\FlightPlan.txt");
             *
             * Timeline.Load(@"c:\workspace\run9.txt");
             *
             * var locationPoints = new List<System.Drawing.PointF>();
             * for (var i = 0; i < Timeline.LatestFrameId; i++)
             * {
             *  locationPoints.Add(Timeline.Data[i].Location);
             * }
             *
             * new FlightPlanMap(fp.Points.ToArray(), locationPoints.ToArray()).Show();
             *
             * return;
             *
             */


            new SystemManager();

            if (SystemManager.Instance.App.IsRunning)
            {
                new ImmersiveWindow().Show();
            }

            var t = new Thread(TickThreadProc);

            t.IsBackground = true;
            t.Start();

            t = new Thread(() =>
            {
                var a = new AnalyzerWindow();
                // a.Show();
                System.Windows.Threading.Dispatcher.Run();
            });
            t.IsBackground = true;
            t.SetApartmentState(ApartmentState.STA);
            t.Start();
        }