/// <summary>
 /// 引发CpuUsageValueArrayChanged事件.
 /// </summary>
 protected virtual void OnCpuUsageValueArrayChanged(CpuUsageValueArrayChangedEventArg e)
 {
     if (this.CpuUsageValueArrayChanged != null)
     {
         this.CpuUsageValueArrayChanged(this, e);
     }
 }
Beispiel #2
0
        void totalCpuUsageMonitor_CpuUsageValueArrayChangedHandler(object sender,
                                                                   CpuUsageValueArrayChangedEventArg e)
        {
            var totalCpuUsageSeries = chartTotalCpuUsage.Series["TotalCpuUsageSeries"];
            var values = e.Values;

            //在图表中显示总CPU使用率.
            totalCpuUsageSeries.Points.DataBindY(e.Values);
        }
Beispiel #3
0
        void processCpuUsageMonitor_CpuUsageValueArrayChangedHandler(object sender,
                                                                     CpuUsageValueArrayChangedEventArg e)
        {
            var processCpuUsageSeries = chartProcessCupUsage.Series["ProcessCpuUsageSeries"];
            var values = e.Values;

            // 在图表中显示进程的CPU使用率.
            processCpuUsageSeries.Points.DataBindY(e.Values);
        }
Beispiel #4
0
        void totalCpuUsageMonitor_CpuUsageValueArrayChangedHandler(object sender,
                                                                   CpuUsageValueArrayChangedEventArg e)
        {
            var totalCpuUsageSeries = chartTotalCpuUsage.Series["TotalCpuUsageSeries"];
            var values = e.Values;

            // Display the total CPU usage in the chart.
            totalCpuUsageSeries.Points.DataBindY(e.Values);
        }
Beispiel #5
0
        void processCpuUsageMonitor_CpuUsageValueArrayChangedHandler(object sender,
                                                                     CpuUsageValueArrayChangedEventArg e)
        {
            var processCpuUsageSeries = chartProcessCupUsage.Series["ProcessCpuUsageSeries"];
            var values = e.Values;

            // Display the process CPU usage in the chart.
            processCpuUsageSeries.Points.DataBindY(e.Values);
        }
Beispiel #6
0
 /// <summary>
 /// 激发processCpuUsageMonitor_CpuUsageValueArrayChangedHandler来处理
 /// processCpuUsageMonitor的CpuUsageValueArrayChanged事件.
 /// </summary>
 void processCpuUsageMonitor_CpuUsageValueArrayChanged(object sender,
     CpuUsageValueArrayChangedEventArg e)
 {
     this.Invoke(new EventHandler<CpuUsageValueArrayChangedEventArg>(
         processCpuUsageMonitor_CpuUsageValueArrayChangedHandler), sender, e);
 }
Beispiel #7
0
        void totalCpuUsageMonitor_CpuUsageValueArrayChangedHandler(object sender,
            CpuUsageValueArrayChangedEventArg e)
        {
            var totalCpuUsageSeries = chartTotalCpuUsage.Series["TotalCpuUsageSeries"];
            var values = e.Values;

            //在图表中显示总CPU使用率.
            totalCpuUsageSeries.Points.DataBindY(e.Values);
        }
Beispiel #8
0
        void processCpuUsageMonitor_CpuUsageValueArrayChangedHandler(object sender,
            CpuUsageValueArrayChangedEventArg e)
        {
            var processCpuUsageSeries = chartProcessCupUsage.Series["ProcessCpuUsageSeries"];
            var values = e.Values;

            // 在图表中显示进程的CPU使用率.
            processCpuUsageSeries.Points.DataBindY(e.Values);
        }
Beispiel #9
0
 /// <summary>
 /// 激发totalCpuUsageMonitor_CpuUsageValueArrayChangedHandler以处理totalCpuUsageMonitor
 /// 的CpuUsageValueArrayChanged事件.
 /// </summary>
 void totalCpuUsageMonitor_CpuUsageValueArrayChanged(object sender,
                                                     CpuUsageValueArrayChangedEventArg e)
 {
     this.Invoke(new EventHandler <CpuUsageValueArrayChangedEventArg>(
                     totalCpuUsageMonitor_CpuUsageValueArrayChangedHandler), sender, e);
 }
 /// <summary>
 /// 引发CpuUsageValueArrayChanged事件.
 /// </summary>
 protected virtual void OnCpuUsageValueArrayChanged(CpuUsageValueArrayChangedEventArg e)
 {
     if (this.CpuUsageValueArrayChanged != null)
     {
         this.CpuUsageValueArrayChanged(this, e);
     }
 }