示例#1
0
        public MainWindow ()
        {
            InitializeComponent();

            _Logger = new EventLoggerAccess();

            _DataAccess = new LinacDataAccess(_Logger);
            _BusinessManager = new BusinessManager(_DataAccess, _Logger);

            _DataAccess.Open();


           
        }
示例#2
0
 public BusinessManager (LinacDataAccess dataAccess, EventLoggerAccess logger)
 {
     _StatusManager = new LinacStatusManager(dataAccess, logger);
     _RequestManager = new RequestManager(dataAccess, _StatusManager, logger);
 }
示例#3
0
        public LinacStatusManager (LinacDataAccess dataAccess, EventLoggerAccess logger) :
            base(dataAccess, logger)
        {
            InitializeLinacTags();

            _dataAccess = dataAccess;

            //dataAccess.DetectorConnectionStateUpdate += new ConnectionStateChangeHandler(DataAccessDetectors_ConnectionStateUpdate);
            //dataAccess.APCSConnectionStateUpdate += new ConnectionStateChangeHandler(DataAccessAPCS_ConnectionStateUpdate);

            dataAccess.LinacConnectionStateChangeEvent += new ConnectionStateChangeHandler(dataAccess_LinacConnectionStateChangeEvent);            
        }