Ejemplo n.º 1
0
        public MainViewModel(
            TickerExplorerViewModel tickerExplorer,
            StrategyExplorerViewModel strategyExplorer,
            ErrorListViewModel errorList,
            SimulationSettingsViewModel simulationSettings,
            GlobalCommandContainer commands)
        {
            this.TickerExplorer = tickerExplorer;
            this.ErrorList = errorList;
            this.SimulationSettings = simulationSettings;
            this.StrategyExplorer = strategyExplorer;
            this.Commands = commands;

            var assembly = Assembly.GetEntryAssembly();
            var v = new Version(((AssemblyFileVersionAttribute)Attribute.GetCustomAttribute(
                assembly, typeof(AssemblyFileVersionAttribute), false)).Version);
            Title = string.Format("{0} v{1}.{2}",
                assembly.GetName().Name,
                v.Major,
                v.Minor);
        }
Ejemplo n.º 2
0
 public StrategyCreator(StrategyExplorerViewModel strategies, ScriptStrategyFactory factory)
 {
     this.strategies = strategies;
     this.factory = factory;
 }