public SettingsViewModel(ISettingsRepositories repos, IUserNotify notify, ISecurityContext ctx)
        {
            NewPipeMillSizeType();
            this.repos  = repos;
            this.notify = notify;
            this.ctx    = ctx;

            saveCommand = ViewModelSource
                          .Create <SaveSettingsCommand>(() => new SaveSettingsCommand(this, repos, notify, ctx));

            extractCategoriesCommand = ViewModelSource
                                       .Create <ExtractCategoriesCommand>(() => new ExtractCategoriesCommand(this, repos, notify));

            this.ExtractCategoriesCommand.Execute();
            CategoryTypes.ListChanged += (s, e) => ModifiableView.IsModified = true;
            PipeTests.ListChanged     += (s, e) => ModifiableView.IsModified = true;
        }
        public SettingsViewModel(ISettingsRepositories repos, IUserNotify notify, ISecurityContext ctx)
        {
            NewPipeMillSizeType();
            this.repos = repos;
            this.notify = notify;
            this.ctx = ctx;

            saveCommand = ViewModelSource
                .Create<SaveSettingsCommand>(() => new SaveSettingsCommand(this, repos, notify, ctx));

            extractCategoriesCommand = ViewModelSource
                .Create<ExtractCategoriesCommand>(() => new ExtractCategoriesCommand(this, repos, notify));

            this.ExtractCategoriesCommand.Execute();
            CategoryTypes.ListChanged += (s, e) => ModifiableView.IsModified = true;
            PipeTests.ListChanged += (s, e) => ModifiableView.IsModified = true;

        }