Esempio n. 1
0
 public SaveSettingsCommand(SettingsViewModel viewModel, ISettingsRepositories repos, IUserNotify notify, ISecurityContext ctx)
 {
     this.viewModel = viewModel;
     this.repos = repos;
     this.notify = notify;
     this.ctx = ctx;
 }
Esempio n. 2
0
 public SaveSettingsCommand(SettingsViewModel viewModel, ISettingsRepositories repos, IUserNotify notify, ISecurityContext ctx)
 {
     this.viewModel = viewModel;
     this.repos     = repos;
     this.notify    = notify;
     this.ctx       = ctx;
 }
Esempio n. 3
0
 public ExtractCategoriesCommand(
     SettingsViewModel viewModel,
     ISettingsRepositories repos,
     IUserNotify notify)
 {
     this.viewModel = viewModel;
     this.repos     = repos;
     this.notify    = notify;
 }
 public ExtractCategoriesCommand(
     SettingsViewModel viewModel, 
     ISettingsRepositories repos, 
     IUserNotify notify)
 {
     this.viewModel = viewModel;
     this.repos = repos;
     this.notify = notify;
 }
Esempio n. 5
0
        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;
        }
Esempio n. 6
0
        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;

        }