Ejemplo n.º 1
0
 /// <summary>
 /// Provides a deterministic way to create the ArchiveViewModel property.
 /// </summary>
 public static void CreateArchiveViewModel()
 {
     if (_ArchiveViewModel == null)
     {
         _ArchiveViewModel = new ArchiveViewModel(); 
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Provides a deterministic way to delete the ArchiveViewModel property.
 /// </summary>
 public static void ClearArchiveViewModel()
 {
     _ArchiveViewModel.Cleanup();
     _ArchiveViewModel = null;
 }