private void ExitButton_Click(object sender, RoutedEventArgs e)
        {
            MessageBoxResult result = System.Windows.MessageBox.Show("Vuoi uscire dall'applicazione?", "Esci", MessageBoxButton.OKCancel);

            if (result == MessageBoxResult.OK)
            {
                if (timeTracker.IsRunning())
                {
                    timeTracker.Stop();
                }
                stopwatch.Stop();
                inTimeIcon.Dispose(); // fa scomparire l'icona dalla barra
                System.Windows.Application.Current.Shutdown();
            }
            else
            {
                this.Show();
            }
        }