private IStudioControl OpenOprimizationControl(StrategyContainer strategy)
 {
     return(OpenControl(strategy.Strategy.Id.To <string>(), typeof(OptimizatorContent), strategy, () =>
     {
         var c = new OptimizatorContent {
             Strategy = strategy
         };
         c.SetStrategy(strategy);
         return c;
     }));
 }
Ejemplo n.º 2
0
        public static void SetStrategy(this OptimizatorContent control, StrategyContainer strategy)
        {
            strategy.BindStrategyToScope(control);

            control.Strategy = strategy;
        }
		private IStudioControl OpenOprimizationControl(StrategyContainer strategy)
		{
			return OpenControl(strategy.Strategy.Id.To<string>(), typeof(OptimizatorContent), strategy, () =>
			{
				var c = new OptimizatorContent { Strategy = strategy };
				c.SetStrategy(strategy);
				return c;
			});
		}