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

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

            // 在图表中显示进程的CPU使用率.
            processCpuUsageSeries.Points.DataBindY(e.Values);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 6
0
 /// <summary>
 /// 激发processCpuUsageMonitor_CpuUsageValueArrayChangedHandler来处理
 /// processCpuUsageMonitor的CpuUsageValueArrayChanged事件.
 /// </summary>
 void processCpuUsageMonitor_CpuUsageValueArrayChanged(object sender,
     CpuUsageValueArrayChangedEventArg e)
 {
     this.Invoke(new EventHandler<CpuUsageValueArrayChangedEventArg>(
         processCpuUsageMonitor_CpuUsageValueArrayChangedHandler), sender, e);
 }
Exemplo n.º 7
0
        void totalCpuUsageMonitor_CpuUsageValueArrayChangedHandler(object sender,
            CpuUsageValueArrayChangedEventArg e)
        {
            var totalCpuUsageSeries = chartTotalCpuUsage.Series["TotalCpuUsageSeries"];
            var values = e.Values;

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

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