public CountersRow AddCountersRow(int id, int value) { CountersRow rowCountersRow = ((CountersRow)(this.NewRow())); rowCountersRow.ItemArray = new object[] { id, value }; this.Rows.Add(rowCountersRow); return(rowCountersRow); }
private void CounterSamplesAdded(CounterSamplesEvent obj) { Application.Instance.AsyncInvoke(delegate { if (Settings.Instance.ShowPerformanceCounters) { var row = new CountersRow(); row.time = obj.Time; foreach (var item in obj.Samples) { row.Counters[item.Index] = item.Value; } ((ObservableCollection <CountersRow>)countersView.DataStore).Add(row); } else { var workingSetValue = obj.Samples.FirstOrDefault(s => s.Index == 4).Value; if (workingSetValue != null) { currentWorkingSet += (double)(long)workingSetValue; } workingMemory.AddSample(obj.Time, currentWorkingSet); } }); }
public CountersRowChangeEvent(CountersRow row, System.Data.DataRowAction action) { this.eventRow = row; this.eventAction = action; }
public void RemoveCountersRow(CountersRow row) { this.Rows.Remove(row); }
public void AddCountersRow(CountersRow row) { this.Rows.Add(row); }