public MainWindow()
        {
            _reader = new CardReader();
            _scanner = new Scanner();
            _printer = new Printer();
            InitializeComponent();
            _reader.Show();
            _scanner.Show();
            _printer.Show();

            //SetUpTestData();

            MainMenuController mainController =
                new MainMenuController(this, _reader, _scanner, _printer,
                                        null, null, null);
            mainController.initialise();
        }
Пример #2
0
        public MainWindow()
        {
            _reader = new CardReader();
            _scanner = new Scanner();
            _printer = new Printer();
            InitializeComponent();
            _reader.Show();
            _scanner.Show();
            _printer.Show();

            _bookDAO   = new BookDAO(new BookHelper());
            _loanDAO   = new LoanDAO(new LoanHelper());
            _memberDAO = new MemberDAO(new MemberHelper());

            SetUpTestData();

            MainMenuController mainController =
                new MainMenuController(this, _reader, _scanner, _printer,
                                        _bookDAO, _loanDAO, _memberDAO);
            mainController.initialise();
        }