public CommstAdapter(IProgressConnection connection) : base(connection) { try { this.proxyAppObject = new TWLProxyAppObject(connection.Connection); this.pdsContext = new pdsContextDataSet(); this.dataSet = new pdscommstDataSet() { DataSetName = DataSetName }; this.commstTableControlKey = this.dataSet.ttblcommst.GetTableControlParametersKey(); if (!this.tempTableControlParameters.ContainsKey(this.commstTableControlKey)) { this.CreateTableControlParameters(this.commstTableControlKey); } this.OnCreated(); } catch (Exception ex) { NLogLogger.ErrorException("Failed in adapter ", ex); ErrorReportingHelper.ReportProgramErrors($"Error in CommstAdapter constructor - {ex.Message}"); } }
public EventSetupLstActnAdapter(IProgressConnection connection) : base(connection) { try { this.proxyAppObject = new SharedProxyAppObject(connection.Connection); this.pdsContext = new pdsContextDataSet(); this.dataSet = new pdsevent_setup_lst_actnDataSet() { DataSetName = DataSetName }; this.eventSetupLstActnTableControlKey = this.dataSet.ttblevent_setup_lst_actn.GetTableControlParametersKey(); if (!this.tempTableControlParameters.ContainsKey(this.eventSetupLstActnTableControlKey)) { this.CreateTableControlParameters(this.eventSetupLstActnTableControlKey); } this.OnCreated(); } catch (Exception ex) { NLogLogger.ErrorException("Failed in adapter ", ex); ErrorReportingHelper.ReportProgramErrors($"Error in EventSetupLstActnAdapter constructor - {ex.Message}"); } }