Exemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();

            Title = Title.Put(LocalizedStrings.Str3200);

            Loaded += OnLoaded;

            _dataTimer = ThreadingHelper
                         .Timer(OnDataTimer)
                         .Interval(TimeSpan.FromMilliseconds(1));

            Theme.SelectedIndex = 1;

            SeriesEditor.Settings = new CandleSeries
            {
                CandleType = typeof(TimeFrameCandle),
                Arg        = TimeSpan.FromMinutes(1)
            };

            ConfigManager.RegisterService <IMarketDataProvider>(_testMdProvider);
            ConfigManager.RegisterService <ISecurityProvider>(_securityProvider);

            Theme.ItemsSource = DXTheme.Themes.Where(t => t.ShowInThemeSelector);
            ThemeExtensions.ApplyDefaultTheme();
        }
Exemplo n.º 2
0
        public MainWindow()
        {
            string exeFolder = MainService.GetProgramFolder();

            Config.Set("plugin-directory", exeFolder);
            Config.Set("composer-dll-directory", exeFolder);

            InitializeComponent();
            ThemeExtensions.DefaultTheme = ThemeExtensions.DefaultLightTheme;
            ThemeExtensions.ApplyDefaultTheme();
        }
Exemplo n.º 3
0
        public MainWindow()
        {
            InitializeComponent();

            Title = Title.Put(LocalizedStrings.Str3200);

            Loaded += OnLoaded;

            _dataTimer = ThreadingHelper
                         .Timer(OnDataTimer)
                         .Interval(TimeSpan.FromMilliseconds(1));

            SeriesEditor.Settings = new CandleSeries
            {
                CandleType = typeof(TimeFrameCandle),
                Arg        = TimeSpan.FromMinutes(1)
            };

            ConfigManager.RegisterService <ISubscriptionProvider>(_testProvider);
            ConfigManager.RegisterService <ISecurityProvider>(_securityProvider);

            ThemeExtensions.ApplyDefaultTheme();
        }