コード例 #1
0
        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);
                    }
                };
        }
コード例 #2
0
        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);
                }
            };
        }