Ejemplo n.º 1
0
 public GletvAdapter(IProgressConnection connection) : base(connection)
 {
     try
     {
         this.proxyAppObject = new GLProxyAppObject(connection.Connection);
         this.pdsContext     = new pdsContextDataSet();
         this.dataSet        = new pdsgletvDataSet()
         {
             DataSetName = DataSetName
         };
         this.gletvTableControlKey = this.dataSet.ttblgletv.GetTableControlParametersKey();
         this.glarTableControlKey  = this.dataSet.ttblglar.GetTableControlParametersKey();
         if (!this.tempTableControlParameters.ContainsKey(this.gletvTableControlKey))
         {
             this.CreateTableControlParameters(this.gletvTableControlKey);
         }
         if (!this.tempTableControlParameters.ContainsKey(this.glarTableControlKey))
         {
             this.CreateTableControlParameters(this.glarTableControlKey);
         }
         this.OnCreated();
     }
     catch (Exception ex)
     {
         NLogLogger.ErrorException("Failed in adapter ", ex);
         ErrorReportingHelper.ReportProgramErrors($"Error in GletvAdapter constructor - {ex.Message}");
     }
 }
Ejemplo n.º 2
0
        public AsglinquiryAdapter(IProgressConnection connection) : base(connection)
        {
            try
            {
                this.proxyAppObject = new GLProxyAppObject(connection.Connection);
                this.pdsContext     = new pdsContextDataSet();

                this.OnCreated();
            }
            catch (Exception ex)
            {
                NLogLogger.ErrorException("Failed in adapter ", ex);
                ErrorReportingHelper.ReportProgramErrors($"Error in AsglinquiryAdapter constructor - {ex.Message}");
            }
        }