示例#1
0
 /// <summary>
 /// Provides a deterministic way to create the ConnectionList property.
 /// </summary>
 public static void CreateConnectionList()
 {
     if (_connectionListViewModel == null)
     {
         _connectionListViewModel = new ViewModel.MainWindowViewModel();
     }
 }
示例#2
0
 /// <summary>
 /// Provides a deterministic way to delete the ConnectionList property.
 /// </summary>
 public static void ClearConnectionList()
 {
     _connectionListViewModel.Cleanup();
     _connectionListViewModel = null;
 }