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