void MainWindow_Closed(object sender, EventArgs e) { _driveInterface?.Dispose(); _windowTimerStopwatch?.Stop(); _gazeToolbarVisiblityTimer?.Stop(); _eyesOffStopTimer?.Stop(); GazePointer.DetachAll(); Application.Current.Shutdown(); }
private void MainWindow_OnClosing(object sender, CancelEventArgs cancelEventArgs) { GazePointer.DetachAll(); }