Ejemplo n.º 1
0
        public TerminalTab()
        {
            InitializeComponent();

            _holder = new StrategyInfoHolder();
            _holder.StrategiesUpdated += () => GuiDispatcher.GlobalDispatcher.AddAction(() =>
            {
                OpenStrategyBtn.IsEnabled = SelectedStrategyInfo.IsTerminal() && SelectedStrategyInfo.Strategies.Any();
            });
        }
Ejemplo n.º 2
0
		public TerminalTab()
		{
			InitializeComponent();

			_holder = new StrategyInfoHolder();
			_holder.StrategiesUpdated += () => GuiDispatcher.GlobalDispatcher.AddAction(() =>
			{
				OpenStrategyBtn.IsEnabled = SelectedStrategyInfo.IsTerminal() && SelectedStrategyInfo.Strategies.Any();
			});
		}
Ejemplo n.º 3
0
        public StrategyTab()
        {
            InitializeComponent();

            _holder = new StrategyInfoHolder();
            _holder.StrategyInfosUpdated += () => GuiDispatcher.GlobalDispatcher.AddAction(() =>
            {
                var registry = ConfigManager.TryGetService <IStudioEntityRegistry>();
                OpenStrategyInfoBtn.IsEnabled = registry != null && registry.Strategies.Any(s => s.IsStrategy());
            });
            _holder.StrategiesUpdated += () => GuiDispatcher.GlobalDispatcher.AddAction(() =>
            {
                OpenStrategyBtn.IsEnabled = SelectedStrategyInfo.IsStrategy() && SelectedStrategyInfo.Strategies.Any();
            });

            Loaded += OnLoaded;
        }
Ejemplo n.º 4
0
		public AnalyticsTab()
		{
			InitializeComponent();

			_holder = new StrategyInfoHolder();
			_holder.StrategyInfosUpdated += () => GuiDispatcher.GlobalDispatcher.AddAction(() =>
			{
				var registry = ConfigManager.TryGetService<IStudioEntityRegistry>();
				OpenAnalyticsInfoBtn.IsEnabled = registry != null && registry.Strategies.Any(s => s.IsAnalytics());
			});
			_holder.StrategiesUpdated += () => GuiDispatcher.GlobalDispatcher.AddAction(() =>
			{
				OpenAnalyticsBtn.IsEnabled = SelectedStrategyInfo.IsAnalytics() && SelectedStrategyInfo.Strategies.Any();
			});

			Loaded += OnLoaded;
		}