コード例 #1
0
 /// <summary>
 /// Provides a deterministic way to create the Connections property.
 /// </summary>
 public static void CreateConnections()
 {
     if (_connectionsVM == null)
     {
         _connectionsVM = _iocContainer.Resolve <ConnectionsViewModel>();
     }
 }
コード例 #2
0
 /// <summary>
 /// Provides a deterministic way to delete the Connections property.
 /// </summary>
 public static void ClearConnections()
 {
     _connectionsVM.Cleanup();
     _connectionsVM = null;
 }