Inheritance: IDisposable
Esempio n. 1
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            ProfilerApp = new ProfilerApp();

            dispatcherTimer          = new DispatcherTimer();
            dispatcherTimer.Tick    += NetworkUpdate;
            dispatcherTimer.Interval = new TimeSpan(0, 0, 0, 0, 1000 / 30); // 30 updates per second
            dispatcherTimer.Start();
        }
Esempio n. 2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            ProfilerApp = new ProfilerApp();

            dispatcherTimer = new DispatcherTimer();
            dispatcherTimer.Tick += NetworkUpdate;
            dispatcherTimer.Interval = new TimeSpan(0, 0, 0, 0, 1000 / 30); // 30 updates per second
            dispatcherTimer.Start();
        }
Esempio n. 3
0
        protected override void OnExit(ExitEventArgs e)
        {
            base.OnExit(e);

            if (dispatcherTimer != null)
            {
                dispatcherTimer.Stop();
                dispatcherTimer = null;
            }

            if (ProfilerApp != null)
            {
                ProfilerApp.Dispose();
                ProfilerApp = null;
            }
        }
Esempio n. 4
0
        protected override void OnExit(ExitEventArgs e)
        {
            base.OnExit(e);

            if (dispatcherTimer != null)
            {
                dispatcherTimer.Stop();
                dispatcherTimer = null;
            }

            if (ProfilerApp != null)
            {
                ProfilerApp.Dispose();
                ProfilerApp = null;
            }
        }