public List<Component> Components {get;set;}
...
public OnComponentInitializing(Component reference){
Component.Add(reference);
}
public OnComponentDisposal(Component reference){
Component.Remove(reference);
}
...
public double GetValue(string tag){
//converts tag into a label
//search list for a component that matches the label
//if found returns the value
}
public List<Component> Components {get;set;}
...
public OnComponentInitializing(Component reference){
Component.Add(reference);
}
public OnComponentDisposal(Component reference){
Component.Remove(reference);
}
...
public double GetValue(string tag){
//converts tag into a label
//search list for a component that matches the label
//if found returns the value
}