/// <summary> /// Handles the DataAvailable event of the source control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="DataEventArgs"/> instance containing the event data.</param> void source_DataAvailable(object sender, DataEventArgs e) { foreach(var set in e.Values) { if(_names.Contains(set.Key)) DataSet.AddValue(set.Key, new Datum<double>(set.Value)); } }
/// <summary> /// Handles the <see cref="E:DataAvailable" /> event. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="DataEventArgs"/> instance containing the event data.</param> private void OnDataAvailable(object sender, DataEventArgs e) { if (DataAvailable != null) DataAvailable(sender, e); }