protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); XToolsApp = new Network.XToolsApp(e.Args); dispatcherTimer = new DispatcherTimer(); dispatcherTimer.Tick += NetworkUpdate; dispatcherTimer.Interval = new TimeSpan(0, 0, 0, 0, 60); dispatcherTimer.Start(); ConsoleLineWriter = new ConsoleWriter(); }
protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); XToolsApp = new Network.XToolsApp(e.Args); dispatcherTimer = new DispatcherTimer(); dispatcherTimer.Tick += NetworkUpdate; dispatcherTimer.Interval = new TimeSpan(0, 0, 0, 0, 60); dispatcherTimer.Start(); ConsoleLineWriter = new ConsoleWriter(); }
protected override void OnExit(ExitEventArgs e) { base.OnExit(e); if (dispatcherTimer != null) { dispatcherTimer.Stop(); dispatcherTimer = null; } if (XToolsApp != null) { XToolsApp.Dispose(); XToolsApp = null; } }
protected override void OnExit(ExitEventArgs e) { base.OnExit(e); if (dispatcherTimer != null) { dispatcherTimer.Stop(); dispatcherTimer = null; } if (XToolsApp != null) { XToolsApp.Dispose(); XToolsApp = null; } }