/// <inheritdoc />
        public MainWindow()
        {
            InitializeComponent();
            IAppSettingsBase appSettingsBase = new AppSettingsBase(Settings.Default);

            _roundCorners = new RoundCorners();
            IApplicationStyle style = new ApplicationStyle(_roundCorners, true);

            style.Run();
            _appSettings     = new AppSettings(appSettingsBase);
            _moveDirectory   = new MoveDirectory();
            _processByPath   = new ProcessByPath();
            _generateNewPath = new GenerateNewPath(_appSettings);
            Load();
        }
Exemple #2
0
        private void Load()
        {
            IRoundCorners     roundCorners = new RoundCorners();
            IApplicationStyle style        = new ApplicationStyle(roundCorners, true, true);

            style.Run();

            IScriptPaths              scriptPaths              = new ScriptPaths();
            IExecutePowerShellScript  executePowerShellScript  = new ExecutePowerShellScript();
            ITaskBarIconConfiguration taskBarIconConfiguration =
                new TaskBarIconConfiguration(this, PowerShellRunnerTaskBarIcon, executePowerShellScript, scriptPaths);

            taskBarIconConfiguration.StartMinimized();
            taskBarIconConfiguration.Run();

            //MessageBox.Show(stringBuilder.ToString());
        }
        /// <inheritdoc />
        public MainWindow()
        {
            InitializeComponent();

            _roundCorners = new RoundCorners();
            IApplicationStyle style = new ApplicationStyle(_roundCorners, true);

            style.Run();

            WindowState = WindowState.Minimized;
            _app        = (App)Application.Current;

            IFileListFromPath   fileListFromPath   = new FileListFromPath();
            IListFromFileSystem listFromFileSystem = new ListFromFileSystem(_app, fileListFromPath);

            _compareFileLists  = new CompareFileLists(listFromFileSystem, _app);
            _writeFileListToDb = new WriteFileListToDb(listFromFileSystem, _app);

            LoadAsync();
        }