Esempio n. 1
0
 public void Remove(string strategyName)
 {
     if (AllStrategies_.ContainsKey(strategyName))
     {
         AllStrategies_.Remove(strategyName);
     }
     else
     {
     }
 }
Esempio n. 2
0
 public IFinanceStrategy GetStrategy(string strategyName)
 {
     if (AllStrategies_.ContainsKey(strategyName))
     {
         return(AllStrategies_[strategyName]);
     }
     else
     {
         return(null);
     }
 }
Esempio n. 3
0
 public void AddStrategy(IFinanceStrategy strategy)
 {
     AllStrategies_.Add(strategy.Name, strategy);
 }