示例#1
0
 public VaesAdapter(IProgressConnection connection) : base(connection)
 {
     try
     {
         this.proxyAppObject = new VAProxyAppObject(connection.Connection);
         this.pdsContext     = new pdsContextDataSet();
         this.dataSet        = new pdsvaesDataSet()
         {
             DataSetName = DataSetName
         };
         this.vaesTableControlKey         = this.dataSet.ttblvaes.GetTableControlParametersKey();
         this.vaesdefaultsTableControlKey = this.dataSet.ttblvaesdefaults.GetTableControlParametersKey();
         if (!this.tempTableControlParameters.ContainsKey(this.vaesTableControlKey))
         {
             this.CreateTableControlParameters(this.vaesTableControlKey);
         }
         if (!this.tempTableControlParameters.ContainsKey(this.vaesdefaultsTableControlKey))
         {
             this.CreateTableControlParameters(this.vaesdefaultsTableControlKey);
         }
         this.OnCreated();
     }
     catch (Exception ex)
     {
         NLogLogger.ErrorException("Failed in adapter ", ex);
         ErrorReportingHelper.ReportProgramErrors($"Error in VaesAdapter constructor - {ex.Message}");
     }
 }
示例#2
0
        public AsvaheaderAdapter(IProgressConnection connection) : base(connection)
        {
            try
            {
                this.proxyAppObject = new VAProxyAppObject(connection.Connection);
                this.pdsContext     = new pdsContextDataSet();

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