public AscminquiryAdapter(IProgressConnection connection) : base(connection) { try { this.proxyAppObject = new CMProxyAppObject(connection.Connection); this.pdsContext = new pdsContextDataSet(); this.OnCreated(); } catch (Exception ex) { NLogLogger.ErrorException("Failed in adapter ", ex); ErrorReportingHelper.ReportProgramErrors($"Error in AscminquiryAdapter constructor - {ex.Message}"); } }
public CmetAdapter(IProgressConnection connection) : base(connection) { try { this.proxyAppObject = new CMProxyAppObject(connection.Connection); this.pdsContext = new pdsContextDataSet(); this.dataSet = new pdscmetDataSet() { DataSetName = DataSetName }; this.cmetTableControlKey = this.dataSet.ttblcmet.GetTableControlParametersKey(); if (!this.tempTableControlParameters.ContainsKey(this.cmetTableControlKey)) { this.CreateTableControlParameters(this.cmetTableControlKey); } this.OnCreated(); } catch (Exception ex) { NLogLogger.ErrorException("Failed in adapter ", ex); ErrorReportingHelper.ReportProgramErrors($"Error in CmetAdapter constructor - {ex.Message}"); } }