Ejemplo n.º 1
0
 public ConnectionViewModel(IConnectionDataProvider connectionDataProvider)
 {
     if (connectionDataProvider != null)
     {
         _connectionDataProvider = connectionDataProvider;
         AvailableConnections = _connectionDataProvider
             .GetConnectionNames()
             .ToArray();
         SelectedConnection = _connectionDataProvider.GetDefaultConnectionName();
     }
     ConnectionButtonText = "Connect";
 }
 public MainWindowController(IConnectionDataProvider connectionDataProvider,
     IDatabaseCommunicator communicator,
     IDbToolSettings settings,
     ISchemaObjectProvider schemaObjectProvider)
     : base("MainWindow")
 {
     _connectionDataProvider = connectionDataProvider;
     _communicator = communicator;
     _settings = settings;
     _schemaObjectProvider = schemaObjectProvider;
     Initialize();
 }