public override void Initialize(XmlElement configurationElement, DataCollectionEvents events,
                                        DataCollectionSink dataSink, DataCollectionLogger logger, DataCollectionEnvironmentContext environmentContext)
        {
            _dataEvents = events;
            _dataLogger = logger;
            _dataSink   = dataSink;

            _configSettings = configurationElement;
            RegisterEventHandlers();

            _nyanCat = new CatRenderer();
            _stats   = new TestStats();
        }
        public override void Initialize(XmlElement configurationElement, DataCollectionEvents events,
            DataCollectionSink dataSink, DataCollectionLogger logger, DataCollectionEnvironmentContext environmentContext)
        {
            _dataEvents = events;
            _dataLogger = logger;
            _dataSink = dataSink;

            _configSettings = configurationElement;
            RegisterEventHandlers();

            _nyanCat = new CatRenderer();
            _stats = new TestStats();
        }
Beispiel #3
0
 public void UpdateStats(TestStats stats)
 {
     try
     {
         _nyanCat.Dispatcher.Invoke(() =>
         {
             _nyanCat.PassedCount = stats.Passed;
             _nyanCat.FailedCount = stats.Failed;
             _nyanCat.OtherCount  = stats.Other;
         });
     }
     catch (Exception e)
     {
         MessageBox.Show(e.Message);
         throw;
     }
 }
 public void UpdateStats(TestStats stats)
 {
     try
     {
         _nyanCat.Dispatcher.Invoke(() =>
             {
                 _nyanCat.PassedCount = stats.Passed;
                 _nyanCat.FailedCount = stats.Failed;
                 _nyanCat.OtherCount = stats.Other;
             });
     }
     catch (Exception e)
     {
         MessageBox.Show(e.Message);
         throw;
     }
 }