public SaveSettingsCommand(SettingsViewModel viewModel, ISettingsRepositories repos, IUserNotify notify, ISecurityContext ctx) { this.viewModel = viewModel; this.repos = repos; this.notify = notify; this.ctx = ctx; }
public ExtractCategoriesCommand( SettingsViewModel viewModel, ISettingsRepositories repos, IUserNotify notify) { this.viewModel = viewModel; this.repos = repos; this.notify = notify; }
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; }