Ejemplo n.º 1
0
        public DbStoredProcedure(string name, int command, DbConnectionHandler dbConnectionHandler)
            : base(dbConnectionHandler)
        {
            _spName = name;
            _spCommand = command;
            _parameterList = new List<DbSpParameter>();

            _localConn =
                DbConnection.CreateSqlConnection(
                    DbConnectionHandler.DbConnectionHandlerFile.DbInstances[DbConnectionHandler.Header.Id],
                    DbConnectionHandler.DbConnectionHandlerFile.InitialCatalogs[DbConnectionHandler.Header.Id]);
        }
Ejemplo n.º 2
0
        public GuiDbConnectionHandler(DbConnectionHandler dbConnectionHandler)
            : base(dbConnectionHandler)
        {
            InitializeComponent();

            HeaderGroupBox.Header = "Db Communication " + DbConnectionHandler.Header.Id;
            _save = true;

            DbInstanceBox.Text = DbConnectionHandler.DbConnectionHandlerFile.DbInstances[DbConnectionHandler.Header.Id];
            InitialCatalogBox.Text = DbConnectionHandler.DbConnectionHandlerFile.InitialCatalogs[DbConnectionHandler.Header.Id];
            ConfigurationFileBox.Text = DbConnectionHandler.DbConnectionHandlerFile.ConfigurationFileNames[DbConnectionHandler.Header.Id];
        }
Ejemplo n.º 3
0
        public GuiDbStoredProcedures(DbConnectionHandler dbConnectionHandler)
            : base(dbConnectionHandler)
        {
            InitializeComponent();

            DbConnectionHandler.CommunicationInterfaceHandler.OnInterfaceUpdatedDelegate += OnInterfaceUpdatedDelegate;

            StoredProcedureListBox.Foreground = Brushes.Black;
            ParameterListBox.Foreground = Brushes.Black;

            StoredProcedureListBox.ItemsSource = DbConnectionHandler.StoredProcedures.Items;
            StoredProcedureListBox.SelectedItem = DbConnectionHandler.StoredProcedures.Items.First();
        }
Ejemplo n.º 4
0
 protected DbConnectionHandlerComponent(DbConnectionHandler dbConnectionHandler)
 {
     DbConnectionHandler = dbConnectionHandler;
     DbConnectionHandler.PropertyChanged += OnPropertyChangedEventHandler;
 }
Ejemplo n.º 5
0
 public DbStoredProcedureList(DbConnectionHandler dbConnectionHandler)
     : base(dbConnectionHandler)
 {
     Items = new List<DbStoredProcedure>();
 }