public AspoheaderAdapter(IProgressConnection connection) : base(connection) { try { this.proxyAppObject = new POProxyAppObject(connection.Connection); this.pdsContext = new pdsContextDataSet(); this.OnCreated(); } catch (Exception ex) { NLogLogger.ErrorException("Failed in adapter ", ex); ErrorReportingHelper.ReportProgramErrors($"Error in AspoheaderAdapter constructor - {ex.Message}"); } }
public PoehAdapter(IProgressConnection connection) : base(connection) { try { this.proxyAppObject = new POProxyAppObject(connection.Connection); this.pdsContext = new pdsContextDataSet(); this.dataSet = new pdspoehDataSet() { DataSetName = DataSetName }; this.poehTableControlKey = this.dataSet.ttblpoeh.GetTableControlParametersKey(); if (!this.tempTableControlParameters.ContainsKey(this.poehTableControlKey)) { this.CreateTableControlParameters(this.poehTableControlKey); } this.OnCreated(); } catch (Exception ex) { NLogLogger.ErrorException("Failed in adapter ", ex); ErrorReportingHelper.ReportProgramErrors($"Error in PoehAdapter constructor - {ex.Message}"); } }