public LogoSetupPage(Window window)
        {
            this.window = window;
            InitializeComponent();

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

            repository = new SettingsRepository(connectionString);

            DataContext = repository.GetLogo();
        }
        private void SetupLogo()
        {
            var connectionString = ConnectionStringBuilder.Build(
                            Settings.Default.server,
                            Settings.Default.database,
                            Settings.Default.user,
                            Settings.Default.password);

            var repository = new SettingsRepository(connectionString);

            LogoImage.Source = repository.GetLogo();
        }