/// <summary> /// Raises the <see cref="E:ValuesChanged" /> event. /// </summary> /// <param name="e">The <see cref="OpcDaItemValuesChangedEventArgs" /> instance containing the event data.</param> protected virtual void OnValuesChanged(OpcDaItemValuesChangedEventArgs e) { EventHandler <OpcDaItemValuesChangedEventArgs> handler = ValuesChanged; if (handler != null) { handler(this, e); } }
private void OnGroupValuesChanged(object sender, OpcDaItemValuesChangedEventArgs args) { // Output values. foreach (OpcDaItemValue value in args.Values) { Console.WriteLine("ItemId: {0}; Value: {1}; Quality: {2}; Timestamp: {3}", value.Item.ItemId, value.Value, value.Quality, value.Timestamp); } }