Ejemplo n.º 1
0
        public AsotentryAdapter(IProgressConnection connection) : base(connection)
        {
            try
            {
                this.proxyAppObject = new OTProxyAppObject(connection.Connection);
                this.pdsContext     = new pdsContextDataSet();

                this.OnCreated();
            }
            catch (Exception ex)
            {
                NLogLogger.ErrorException("Failed in adapter ", ex);
                ErrorReportingHelper.ReportProgramErrors($"Error in AsotentryAdapter constructor - {ex.Message}");
            }
        }
Ejemplo n.º 2
0
        public OtevlAdapter(IProgressConnection connection) : base(connection)
        {
            try
            {
                this.proxyAppObject = new OTProxyAppObject(connection.Connection);
                this.pdsContext     = new pdsContextDataSet();
                this.dataSet        = new pdsotevlDataSet()
                {
                    DataSetName = DataSetName
                };
                this.otevlTableControlKey = this.dataSet.ttblotevl.GetTableControlParametersKey();

                if (!this.tempTableControlParameters.ContainsKey(this.otevlTableControlKey))
                {
                    this.CreateTableControlParameters(this.otevlTableControlKey);
                }
                this.OnCreated();
            }
            catch (Exception ex)
            {
                NLogLogger.ErrorException("Failed in adapter ", ex);
                ErrorReportingHelper.ReportProgramErrors($"Error in OtevlAdapter constructor - {ex.Message}");
            }
        }