public void UnitStatisticsMakeDefault()
        {
            UnitStatistics = new UnitSettings();
            UnitStatistics.SetToDefault();

            UnitStatisticsSave();
        }
 /// <summary>
 /// Initializes a new instance of the MainViewModel class.
 /// </summary>
 public MainWindowViewModel()
 {
     if (IsInDesignMode)
     {
         // Code runs in Blend --> create design time data.
         UnitStatistics = new UnitSettings();
         UnitStatistics.SetToDefault();
     }
     else
     {
         // Code runs "for real"
         UnitStatistics = App.UnitStatisticsSettings;
     }
     
 }