public TargetRenamerSettingsView()
        {
            InitializeComponent();
            IFolderDialogService folderDialogService = new FolderDialogService();

            TargetRenamerSettingsViewModel = new TargetRenamerSettingsViewModel(folderDialogService);
            DataContext = TargetRenamerSettingsViewModel;
        }
Example #2
0
        public App()
        {
#if DEBUG
            DatabaseAccess = new Tests.DummyAccess();
#else
            if (!String.IsNullOrEmpty(MyApplicationData.SqlConnectionString))
            {
                DatabaseAccess = new SqlAccess(MyApplicationData.SqlConnectionString);
            }
            else
            {
                DatabaseAccess = new EmptyDatabaseAccess();
            }
#endif
            FolderDialogService = new FolderDialogService();
            DialogService       = new ContentDialogService();

            this.InitializeComponent();
        }