Esempio n. 1
0
 //Interface
 public Scanner(string text, int imageIndex, int selectedImageIndex, ScannerDS.ScannerTableRow scanner, string dbConnection) : base(text, imageIndex, selectedImageIndex)
 {
     //Constructor
     try {
         //Configure this terminal from the terminal configuration information
         this.mCubeService = new CubeService(dbConnection);;
         if (scanner != null)
         {
             this.mTerminalName = scanner.TerminalName;
             this.mSourceName   = scanner.SourceName;
         }
     }
     catch (Exception ex) { throw new ApplicationException("Unexpected error creating new Scanner instance.", ex); }
 }
Esempio n. 2
0
 //Interface
 public Scanner(string text, int imageIndex, int selectedImageIndex, ScannerDS.ScannerTableRow scanner, int initialDaysback, Mediator mediator) : base(text, imageIndex, selectedImageIndex)
 {
     //Constructor
     try {
         //Configure this terminal from the terminal configuration information
         this.mMediator = mediator;
         if (scanner != null)
         {
             this.mTerminalName = scanner.TerminalName;
             this.mSourceName   = scanner.SourceName;
         }
         this.mProperties         = new Properties(this);
         this.mDaysBack           = initialDaysback;
         this.mCubeStatsDS        = new ScannerDS();
         this.mCubeStatsSummaryDS = new ScannerDS();
         this.mCubeDetailsDS      = new ScannerDS();
         this.mTraceLog           = new TraceLog(this.mSourceName, initialDaysback, this.mMediator.Connection);
     }
     catch (Exception ex) { throw ex; }
 }