public TextFilesViewModel(IEventAggregator events, IRepository<TextFileTemplate> repository, TextFilesManager textFilesManager) { Name = Flyouts.TextFiles; Header = DisplayName = "Auto generated text files:"; this.events = events; this.repository = repository; this.textFilesManager = textFilesManager; events.Subscribe(this); templates = textFilesManager.Templates; InitializeVariables(textFilesManager.Listeners); PropertyChanged += (sender, args) => { if (args.PropertyName == "IsOpen" && IsOpen) { Tracker.TrackEventAsync(Tracker.FlyoutsCategory, "Open", Name, 1); } }; }
public TextFilesViewModel(IEventAggregator events, IRepository <TextFileTemplate> repository, TextFilesManager textFilesManager) { Name = Flyouts.TextFiles; Header = DisplayName = "Auto generated text files:"; this.events = events; this.repository = repository; this.textFilesManager = textFilesManager; events.Subscribe(this); templates = textFilesManager.Templates; InitializeVariables(textFilesManager.Listeners); PropertyChanged += (sender, args) => { if (args.PropertyName == "IsOpen" && IsOpen) { Tracker.TrackEventAsync(Tracker.FlyoutsCategory, "Open", Name, 1); } }; }