Esempio 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);
        }
Esempio n. 2
0
 public SyncTickersGetter(TickerExplorerViewModel tickerExplorer, ISimulationSettingsGetter settingsGetter)
 {
     this.tickerExplorer = tickerExplorer;
     this.settingsGetter = settingsGetter;
 }