public TableInfoServerNodeStateBasedIconProvider(IconOverlayProvider overlayProvider)
        {
            _overlayProvider          = overlayProvider;
            _databaseTypeIconProvider = new DatabaseTypeIconProvider();

            _serverNode = CatalogueIcons.TableInfoServerNode;
        }
示例#2
0
        public DatabaseTypeUI()
        {
            InitializeComponent();
            ddDatabaseType.DataSource = Enum.GetValues(typeof(DatabaseType));

            _databaseIconProvider    = new DatabaseTypeIconProvider();
            pbDatabaseProvider.Image = _databaseIconProvider.GetImage(DatabaseType.MicrosoftSQLServer);

            bLoading = false;
        }
        public ExternalDatabaseServerStateBasedIconProvider(IconOverlayProvider overlayProvider)
        {
            _overlayProvider = overlayProvider;
            _default         = CatalogueIcons.ExternalDatabaseServer;

            _assemblyToIconDictionary.Add(new DataQualityEnginePatcher().Name, CatalogueIcons.ExternalDatabaseServer_DQE);
            _assemblyToIconDictionary.Add(new ANOStorePatcher().Name, CatalogueIcons.ExternalDatabaseServer_ANO);
            _assemblyToIconDictionary.Add(new IdentifierDumpDatabasePatcher().Name, CatalogueIcons.ExternalDatabaseServer_IdentifierDump);
            _assemblyToIconDictionary.Add(new QueryCachingPatcher().Name, CatalogueIcons.ExternalDatabaseServer_Cache);
            _assemblyToIconDictionary.Add(new LoggingDatabasePatcher().Name, CatalogueIcons.ExternalDatabaseServer_Logging);

            _typeSpecificIconsProvider = new DatabaseTypeIconProvider();
        }
        public ViewSQLAndResultsWithDataGridUI()
        {
            InitializeComponent();


            btnExecuteSql.Click += (s, e) => RunQuery();
            btnResetSql.Click   += btnResetSql_Click;

            dataGridView1.CellDoubleClick += dataGridView1_CellDoubleClick;

            _serverHeader             = new ToolStripLabel("Server:");
            _databaseTypeIconProvider = new DatabaseTypeIconProvider();
        }
        public ViewSQLAndResultsWithDataGridUI()
        {
            InitializeComponent();

            ScintillaTextEditorFactory factory = new ScintillaTextEditorFactory();

            _scintilla = factory.Create();
            splitContainer1.Panel1.Controls.Add(_scintilla);
            _scintilla.TextChanged += _scintilla_TextChanged;
            _scintilla.KeyUp       += ScintillaOnKeyUp;

            btnExecuteSql.Click += (s, e) => RunQuery();
            btnResetSql.Click   += btnResetSql_Click;

            dataGridView1.CellDoubleClick += dataGridView1_CellDoubleClick;

            _serverHeader             = new ToolStripLabel("Server:");
            _databaseTypeIconProvider = new DatabaseTypeIconProvider();
        }