コード例 #1
0
ファイル: MainViewModel.cs プロジェクト: nabuk/IstLight
        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);
        }
コード例 #2
0
ファイル: SyncTickersGetter.cs プロジェクト: nabuk/IstLight
 public SyncTickersGetter(TickerExplorerViewModel tickerExplorer, ISimulationSettingsGetter settingsGetter)
 {
     this.tickerExplorer = tickerExplorer;
     this.settingsGetter = settingsGetter;
 }