Beispiel #1
0
 private void BindDefaultStrategy()
 {
     try
     {
         IStrategyAssembly strategyAssembly = null;// StrategyMgrFactory.DefaultPluginMgr.GetStrategyAssembly("com.wer.sc.strategy.common");
         if (strategyAssembly == null)
         {
             return;
         }
         strategyInfo = strategyAssembly.GetStrategy("STRATEGY.DEFAULT");
         //strategyInfo = strategyAssembly.GetStrategy("STRATEGY.ZIGZAG");
         if (strategyInfo == null)
         {
             return;
         }
         strategy = strategyInfo.CreateStrategy().Strategy;
         binder   = new CompChartStrategyBinder(this.compChart1);
         binder.BindStrategy(strategy);
     }
     catch (Exception e)
     {
     }
 }
Beispiel #2
0
 public void RefreshStrategy()
 {
     this.strategy = strategyInfo.CreateStrategy();
 }