public TraceSettingsViewModel( ITraceSettingsContext context, ISettingsStore settingsStore = null) { this.context = context ?? throw new ArgumentNullException(nameof(context)); this.settingsStore = settingsStore; Profiles = new AcqRelObservableCollection <TraceProfileViewModel>( x => x.Context = null, x => x.Context = context); if (settingsStore != null) { LoadFromSettings(); Title = $"Trace Settings ({settingsStore.Name})"; } else { Title = "Trace Settings"; } }
public EventCollectorViewModel() { Providers = new AcqRelObservableCollection <EventProviderViewModel>( x => x.Context = null, x => x.Context = Context); }
public TraceProfileViewModel(Guid id) { Id = id; Collectors = new AcqRelObservableCollection <CollectorViewModel>( x => x.Context = null, x => x.Context = Context); }