public RoomOverviewWindow()
        {
            InitializeComponent();

            var connection = SqliteDatabaseConnection.GetInstance(Properties.Settings.Default.Postgaarden);
            var equipmentCrud = new SqliteEquipmentCrud(connection);
            var roomCrud = new SqliteRoomCrud(connection, equipmentCrud);
            roomHandler = new RoomHandler(roomCrud);
        }
示例#2
0
        public MainWindow()
        {
            InitializeComponent();

            string filePath = Properties.Settings.Default.Postgaarden;
            var sqliteInstance = SqliteDatabaseConnection.GetInstance(filePath);

            var empCrud = new SqliteEmployeeCrud(sqliteInstance);
            var cusCrud = new SqliteCustomerCrud(sqliteInstance);
            var equiCrud = new SqliteEquipmentCrud(sqliteInstance);
            var roomCrud = new SqliteRoomCrud(sqliteInstance, equiCrud);
            bookingCrud = new SqliteBookingCrud(sqliteInstance, roomCrud, cusCrud, empCrud);
        }