public LogEntryListPageViewModel(LogEntryListPage view, LogsRepository repository)
        {
            this.view = view;
            this.repository = repository;

            RetrieveData();
        }
        public LogEntryListPage(MainWindow window)
        {
            this.window = window;
            InitializeComponent();

            var connectionString = ConnectionStringBuilder.Build(
                Settings.Default.server,
                Settings.Default.database,
                Settings.Default.user,
                Settings.Default.password);

            var repository = new LogsRepository(connectionString);

            viewModel = new LogEntryListPageViewModel(this, repository);
            DataContext = viewModel.LogEntryList;
        }