public AspdinquiryAdapter(IProgressConnection connection) : base(connection) { try { this.proxyAppObject = new PDProxyAppObject(connection.Connection); this.pdsContext = new pdsContextDataSet(); this.OnCreated(); } catch (Exception ex) { NLogLogger.ErrorException("Failed in adapter ", ex); ErrorReportingHelper.ReportProgramErrors($"Error in AspdinquiryAdapter constructor - {ex.Message}"); } }
public PdarAdapter(IProgressConnection connection) : base(connection) { try { this.proxyAppObject = new PDProxyAppObject(connection.Connection); this.pdsContext = new pdsContextDataSet(); this.dataSet = new pdspdarDataSet() { DataSetName = DataSetName }; this.pdarTableControlKey = this.dataSet.ttblpdar.GetTableControlParametersKey(); if (!this.tempTableControlParameters.ContainsKey(this.pdarTableControlKey)) { this.CreateTableControlParameters(this.pdarTableControlKey); } this.OnCreated(); } catch (Exception ex) { NLogLogger.ErrorException("Failed in adapter ", ex); ErrorReportingHelper.ReportProgramErrors($"Error in PdarAdapter constructor - {ex.Message}"); } }