コード例 #1
0
        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();
        }
コード例 #2
0
        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();
        }