Example #1
0
 /// <summary>
 /// Checks if every command is executable.
 /// </summary>
 private void CheckCommands()
 {
     SelectRootPathFolderCommand.RaiseCanExecuteChanged();
     LoadFileCommand.RaiseCanExecuteChanged();
     AddPenaltyCommand.RaiseCanExecuteChanged();
     RemovePenaltyCommand.RaiseCanExecuteChanged();
     ActivateCroissantCommand.RaiseCanExecuteChanged();
     SelectLineCommand.RaiseCanExecuteChanged();
     EmailCommand.RaiseCanExecuteChanged();
     SaveCommand.RaiseCanExecuteChanged();
 }
Example #2
0
        protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
        {
            await ConfigureWithEnvironmentServicesAsync(cancellationToken);

            XmlConfigurator.Configure(new FileInfo(Directory.GetParent(Assembly.GetExecutingAssembly().Location).FullName + @"\Log4Net.Config"));
            _outputLoggerService = new OutputLoggerService(JoinableTaskFactory, new LogWatcher());
            _outputLoggerService.StartLogger();

            await MutationExplorerWindowCommand.InitializeAsync(this, _bootstrapper.Container.Resolve <UserNotificationService>());

            await SelectProjectFileCommand.InitializeAsync(this, _bootstrapper.Container.Resolve <MutationFilterItemCreatorService>(), _bootstrapper.Container.Resolve <UserNotificationService>());

            await MutationConfigWindowCommand.InitializeAsync(this, _bootstrapper.Container.Resolve <UserNotificationService>(), _bootstrapper.Container.Resolve <EnvironmentService>(), _bootstrapper.Container.Resolve <SolutionInfoService>());

            await SelectLineCommand.InitializeAsync(this, _bootstrapper.Container.Resolve <MutationFilterItemCreatorService>(), _bootstrapper.Container.Resolve <UserNotificationService>());
        }