Ejemplo n.º 1
0
        public MainWindow()
        {
            Instance = this;
            InitializeComponent();

            Title = Title.Put("E*TRADE");

            Closing += OnClosing;

            _ordersWindow.MakeHideable();
            _securitiesWindow.MakeHideable();
            _stopOrdersWindow.MakeHideable();
            _portfoliosWindow.MakeHideable();
            _myTradesWindow.MakeHideable();

            var guilistener = new GuiLogListener(_logControl);

            guilistener.Filters.Add(msg => msg.Level > LogLevels.Debug);
            _logManager.Listeners.Add(guilistener);

            var location = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
            var path     = Path.Combine(location ?? "", "ETrade", "restdump_{0:yyyyMMdd-HHmmss}.log".Put(DateTime.Now));

            _logManager.Listeners.Add(new FileLogListener(path));

            Application.Current.MainWindow = this;
        }
Ejemplo n.º 2
0
        public MainWindow()
        {
            Instance = this;
            InitializeComponent();

            Title = Title.Put("Sterling");

            Closing += OnClosing;

            _ordersWindow.MakeHideable();
            _securitiesWindow.MakeHideable();
            _stopOrdersWindow.MakeHideable();
            _portfoliosWindow.MakeHideable();
            _myTradesWindow.MakeHideable();
            _newsWindow.MakeHideable();

            var guiListener = new GuiLogListener(LogControl);

            //guiListener.Filters.Add(msg => msg.Level > LogLevels.Debug);
            _logManager.Listeners.Add(guiListener);
            _logManager.Listeners.Add(new FileLogListener("sterling")
            {
                LogDirectory = "Logs"
            });

            Application.Current.MainWindow = this;
        }
Ejemplo n.º 3
0
        public LogControlPanel()
        {
            Content   = _logControl;
            _listener = new GuiLogListener(_logControl);

            WhenLoaded(() => new AddLogListenerCommand(_listener).SyncProcess(this));
        }
Ejemplo n.º 4
0
        public LogManagerPanel()
        {
            Content   = _monitor;
            _listener = new GuiLogListener(_monitor);

            // загрузка контрола происходит только при открытии окна актипро
            // если окно свернуто, то событие загрузки не вызывается.
            ConfigManager.GetService <LogManager>().Listeners.Add(_listener);
            //Loaded += OnLoaded;
        }
Ejemplo n.º 5
0
        public MainWindow()
        {
            InitializeComponent();
            Instance = this;

            _securitiesWindow.MakeHideable();
            _ordersWindow.MakeHideable();
            _stopOrdersWindow.MakeHideable();
            _portfoliosWindow.MakeHideable();
            _myTradesWindow.MakeHideable();

            var guilistener = new GuiLogListener(LogControl);

            //guilistener.Filters.Add(msg => msg.Level > LogLevels.Debug);
            _logManager.Listeners.Add(guilistener);

            _logManager.Listeners.Add(new FileLogListener("rithmic")
            {
                LogDirectory = "Logs"
            });
        }