private void AddValue(string name, string alias, string group, Func <ProcessWrapper, object> func, bool visible = false, string format = "{0:###,###,###,##0}", bool addSeries = true)
        {
            var x = new ProcessInfoValue(name, alias, group, func, format);

            ProcessInfoValues.Add(x);
            if (addSeries)
            {
                var series = new Series(name)
                {
                    XValueType = ChartValueType.DateTime, ChartType = SeriesChartType.FastLine
                };
                x.Series       = series;
                series.Enabled = visible;
                chart.Series.Add(x.Series);
            }
        }
示例#2
0
 private void AddValue(string name, string alias, string group, Func<ProcessWrapper, object> func, bool visible = false, string format = "{0:###,###,###,##0}", bool addSeries = true)
 {
     var x = new ProcessInfoValue(name, alias, group, func, format);
     ProcessInfoValues.Add(x);
     if (addSeries)
     {
         var series = new Series(name) {XValueType = ChartValueType.DateTime, ChartType = SeriesChartType.FastLine};
         x.Series = series;
         series.Enabled = visible;
         chart.Series.Add(x.Series);
     }
 }