/// <summary>
 /// Provides a deterministic way to create the Main property.
 /// </summary>
 public static void CreateMain()
 {
     if (main == null)
     {
         main = new MainViewModel();
     }
 }
 /// <summary>
 /// Provides a deterministic way to delete the Main property.
 /// </summary>
 public static void ClearPanorama()
 {
     if (main != null)
     {
         main.Cleanup();
         main = null;
     }
 }