public ArscAdapter(IProgressConnection connection) : base(connection) { try { this.proxyAppObject = new ARProxyAppObject(connection.Connection); this.pdsContext = new pdsContextDataSet(); this.dataSet = new pdsarscDataSet() { DataSetName = DataSetName }; this.arscTableControlKey = this.dataSet.ttblarsc.GetTableControlParametersKey(); this.arsc_customerbalanceTableControlKey = this.dataSet.ttblarsc_customerbalance.GetTableControlParametersKey(); if (!this.tempTableControlParameters.ContainsKey(this.arscTableControlKey)) { this.CreateTableControlParameters(this.arscTableControlKey); } if (!this.tempTableControlParameters.ContainsKey(this.arsc_customerbalanceTableControlKey)) { this.CreateTableControlParameters(this.arsc_customerbalanceTableControlKey); } this.OnCreated(); } catch (Exception ex) { NLogLogger.ErrorException("Failed in adapter ", ex); ErrorReportingHelper.ReportProgramErrors($"Error in ArscAdapter constructor - {ex.Message}"); } }
public AsarinquiryAdapter(IProgressConnection connection) : base(connection) { try { this.proxyAppObject = new ARProxyAppObject(connection.Connection); this.pdsContext = new pdsContextDataSet(); this.OnCreated(); } catch (Exception ex) { NLogLogger.ErrorException("Failed in adapter ", ex); ErrorReportingHelper.ReportProgramErrors($"Error in AsarinquiryAdapter constructor - {ex.Message}"); } }