예제 #1
0
        public MainWindow()
        {
            InitializeComponent();

            _Logger = new EventLoggerAccess();

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

            _DataAccess.Open();
        }
예제 #2
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);
        }
예제 #3
0
 public BusinessManager(LinacDataAccess dataAccess, EventLoggerAccess logger)
 {
     _StatusManager  = new LinacStatusManager(dataAccess, logger);
     _RequestManager = new RequestManager(dataAccess, _StatusManager, logger);
 }