Esempio n. 1
0
        private void HistoryTicksClick(object sender, RoutedEventArgs e)
        {
            var window = _historyTicksWindows.SafeAdd(SelectedSecurity, security =>
            {
                // create historical ticks window
                var wnd = new HistoryTicksWindow(SelectedSecurity);
                wnd.MakeHideable();
                return(wnd);
            });

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

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