Example #1
0
 public static ActiveSub activate(AMPSAddin.SubscriptionDefinition d, Client client, string messageType, Excel.Workbook workbook)
 {
     if (!_actives.ContainsKey(d))
     {
         _actives[d] = new ActiveSub(client, messageType, d, workbook);
     }
     return _actives[d];
 }
Example #2
0
 public static bool isActive(AMPSAddin.SubscriptionDefinition d)
 {
     return _actives.ContainsKey(d);
 }
Example #3
0
 public static ActiveSub find(AMPSAddin.SubscriptionDefinition d)
 {
     if (_actives.ContainsKey(d))
     {
         return _actives[d];
     }
     else
     {
         return null;
     }
 }