public AswminquiryAdapter(IProgressConnection connection) : base(connection) { try { this.proxyAppObject = new WMProxyAppObject(connection.Connection); this.pdsContext = new pdsContextDataSet(); this.OnCreated(); } catch (Exception ex) { NLogLogger.ErrorException("Failed in adapter ", ex); ErrorReportingHelper.ReportProgramErrors($"Error in AswminquiryAdapter constructor - {ex.Message}"); } }
public WmetAdapter(IProgressConnection connection) : base(connection) { try { this.proxyAppObject = new WMProxyAppObject(connection.Connection); this.pdsContext = new pdsContextDataSet(); this.dataSet = new pdswmetDataSet() { DataSetName = DataSetName }; this.wmetTableControlKey = this.dataSet.ttblwmet.GetTableControlParametersKey(); if (!this.tempTableControlParameters.ContainsKey(this.wmetTableControlKey)) { this.CreateTableControlParameters(this.wmetTableControlKey); } this.OnCreated(); } catch (Exception ex) { NLogLogger.ErrorException("Failed in adapter ", ex); ErrorReportingHelper.ReportProgramErrors($"Error in WmetAdapter constructor - {ex.Message}"); } }