public MessageHeatbeat()
        {
            ((ViewInformation) Info).Description = "Displays a heartbeat graph based upon the incoming message type.";

            presenter = new HeartbeatControl
                            {
                                Data = historicalData
                            };

            // Register an interest in changes to self, so that when the caller changes
            // properties on the view model, appropriate reactions can be preformed.
            PropertyChanged += PropertyChangedHandler;

            DispatcherTimer samplePeriodTimer = new DispatcherTimer(DispatcherPriority.Normal)
                                                   {
                                                       Interval = TimeSpan.FromMilliseconds(SAMPLE_PERIOD)
                                                   };
            samplePeriodTimer.Tick += SampleTick;
            samplePeriodTimer.Start();
        }
Beispiel #2
0
        public MessageHeatBeat()
        {
            ((ViewInformation)Info).Description = "Displays a heartbeat graph based upon the incoming message type.";

            presenter = new HeartbeatControl {
                Data = historicalData
            };

            // Register an interest in changes to self, so that when the caller changes
            // properties on the view model, appropriate reactions can be preformed.
            PropertyChanged += PropertyChangedHandler;

            var samplePeriodTimer = new DispatcherTimer(DispatcherPriority.Normal)
            {
                Interval = TimeSpan.FromMilliseconds(SamplePeriod)
            };

            samplePeriodTimer.Tick += SampleTick;
            samplePeriodTimer.Start();
        }