private void HistoryCandlesClick(object sender, RoutedEventArgs e)
        {
            var window = _historyCandlesWindows.SafeAdd(SelectedSecurity, security =>
            {
                // create historical candles window
                var wnd = new HistoryCandlesWindow(SelectedSecurity);
                wnd.MakeHideable();
                return(wnd);
            });

            if (window.Visibility == Visibility.Visible)
            {
                window.Hide();
            }
            else
            {
                window.Show();
            }
        }
        private void HistoryCandlesClick(object sender, RoutedEventArgs e)
        {
            var window = _historyCandlesWindows.SafeAdd(SelectedSecurity, security =>
            {
                // создаем окно для отображения истории свечек
                var wnd = new HistoryCandlesWindow(SelectedSecurity);
                wnd.MakeHideable();
                return(wnd);
            });

            if (window.Visibility == Visibility.Visible)
            {
                window.Hide();
            }
            else
            {
                window.Show();
            }
        }
		private void HistoryCandlesClick(object sender, RoutedEventArgs e)
		{
			var window = _historyCandlesWindows.SafeAdd(SelectedSecurity, security =>
			{
				// create historical candles window
				var wnd = new HistoryCandlesWindow(SelectedSecurity);
				wnd.MakeHideable();
				return wnd;
			});

			if (window.Visibility == Visibility.Visible)
				window.Hide();
			else
				window.Show();
		}