Ejemplo n.º 1
0
        private void ShowLevel1()
        {
            var window = _level1Windows.SafeAdd(SecurityPicker.SelectedSecurity.Code, security =>
            {
                // create level1 window
                var wnd = new Level1Window {
                    Title = security + LocalizedStrings.Str3693
                };
                wnd.MakeHideable();
                return(wnd);
            });

            if (window.Visibility != Visibility.Visible)
            {
                window.Show();
            }

            if (!_initialized)
            {
                MainWindow.Instance.Trader.NewMessage += TraderOnNewMessage;
                _initialized = true;
            }
        }
Ejemplo n.º 2
0
		private void ShowLevel1()
		{
			var window = _level1Windows.SafeAdd(SecurityPicker.SelectedSecurity.Code, security =>
			{
				// create level1 window
				var wnd = new Level1Window { Title = security + LocalizedStrings.Str3693 };
				wnd.MakeHideable();
				return wnd;
			});

			if (window.Visibility != Visibility.Visible)
				window.Show();

			if (!_initialized)
			{
				MainWindow.Instance.Trader.NewMessage += TraderOnNewMessage;
				_initialized = true;
			}
		}