private static void CreateResultDetails()
 {
     if (resultDetails == null)
     {
         resultDetails = new ResultDetailsViewModel();
     }
 }
 /// <summary>
 /// Provides a deterministic way to delete the Main property.
 /// </summary>
 public static void ClearResultDetails()
 {
     resultDetails.Cleanup();
     resultDetails = null;
 }