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) { } }
public void RefreshStrategy() { this.strategy = strategyInfo.CreateStrategy(); }