public AswtinquiryAdapter(IProgressConnection connection) : base(connection) { try { this.proxyAppObject = new WTProxyAppObject(connection.Connection); this.pdsContext = new pdsContextDataSet(); this.OnCreated(); } catch (Exception ex) { NLogLogger.ErrorException("Failed in adapter ", ex); ErrorReportingHelper.ReportProgramErrors($"Error in AswtinquiryAdapter constructor - {ex.Message}"); } }
public WtehAdapter(IProgressConnection connection) : base(connection) { try { this.proxyAppObject = new WTProxyAppObject(connection.Connection); this.pdsContext = new pdsContextDataSet(); this.dataSet = new pdswtehDataSet() { DataSetName = DataSetName }; this.wtehTableControlKey = this.dataSet.ttblwteh.GetTableControlParametersKey(); if (!this.tempTableControlParameters.ContainsKey(this.wtehTableControlKey)) { this.CreateTableControlParameters(this.wtehTableControlKey); } this.OnCreated(); } catch (Exception ex) { NLogLogger.ErrorException("Failed in adapter ", ex); ErrorReportingHelper.ReportProgramErrors($"Error in WtehAdapter constructor - {ex.Message}"); } }