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));
 }
Exemple #2
0
 public void RegisterChangableVariable(string variableID, HomeSimCockpitSDK.VariableType type)
 {
 }