protected override void Construct(ReadOnlyCollection <object> args)
        {
            base.Construct(args);

            #region Настройка подключения

            var _args = new ConnectionRequiredEventArgs();
            this.OnConnectionRequired(_args);
            this._Binder.Bind <IVfpOdbcConnection>(this.Connection = this._InstanceFactory.CreateInstance <VfpOdbcConnection>(x => x("connectionString", _args.ConnectionString)));
            this.Connection.Open();

            #endregion

            this._DataLoader?.Load(this.ComponentParameters);
            this.OnDataLoad(EventArgs.Empty);
        }
Example #2
0
        protected override void OnEventHandlerProxyChanged(EventArgs e)
        {
            base.OnEventHandlerProxyChanged(e);

            #region Настройка подключения

            var _args = new ConnectionRequiredEventArgs();
            this.OnConnectionRequired(_args);
            this._Binder.Bind <IVfpOdbcConnection>(this.Connection = this._InstanceFactory.CreateInstance <VfpOdbcConnection>(x => x("connectionString", _args.ConnectionString)));
            this.Connection.Open();

            #endregion

            this._DataLoader?.Load(this.ComponentParameters);
            this.OnDataLoad(EventArgs.Empty);
        }
 private void OnConnectionRequired(ConnectionRequiredEventArgs e) => this.VfpConnectionRequired_448FCAB8513A4E5996E775521DC76FD5?.Invoke(this, e);
Example #4
0
 private void OnConnectionRequired(ConnectionRequiredEventArgs e) => this.VfpConnectionRequired_ED37CBB9BB88499CA2D2633826835D7C?.Invoke(this, e);