public void RegisterListenerForVariable(HomeSimCockpitSDK.VariableChangeSignalDelegate listenerMethod, string variableID, HomeSimCockpitSDK.VariableType type) { foreach (Variable v in _input) { if (v.ID == variableID && v.Type == type) { v.VariableChanged += listenerMethod; if (!_registeredVariable.Contains(v)) { _registeredVariable.Add(v); } return; } } throw new Exception(string.Format("Brak zmiennej o identyfikatorze '{0}' i type '{1}'.", variableID, type)); }
public void RegisterChangableVariable(string variableID, HomeSimCockpitSDK.VariableType type) { }