public PopupHistogram(ChartWindow _main_win, double interval)
        {
            InitializeComponent();
            this.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            Main_win            = _main_win;
            intrv               = interval;
            vertic_histogr_type = Main_win.vertical_histogram_type;

            swtch          = Main_win.isGist;
            swtch_2        = Main_win.vertical_gist;
            textbox_1.Text = Main_win.hsthrm_fltr_1.ToString();
            textbox_2.Text = Main_win.hsthrm_fltr_2.ToString();
            textbox_3.Text = Main_win.hsthrm_fltr_3.ToString();
            textbox_4.Text = Main_win.Vert_hsthrm_fltr_1.ToString();
            textbox_5.Text = Main_win.Vert_hsthrm_fltr_2.ToString();
            textbox_6.Text = Main_win.Vert_hsthrm_fltr_3.ToString();

            if (Main_win.isGist)
            {
                check_box_1.IsChecked = true;
            }
            else
            {
                swtch = false;
                textbox_1.IsEnabled = false;
                textbox_2.IsEnabled = false;
                textbox_3.IsEnabled = false;
            }

            if (Main_win.vertical_gist)
            {
                check_box_2.IsChecked = true;
            }
            else
            {
                textbox_4.IsEnabled = false;
                textbox_5.IsEnabled = false;
                textbox_6.IsEnabled = false;

                CumulativeDeltaCheckBox.IsEnabled = false;
                VolumeCheckBox.IsEnabled          = false;
            }


            if (vertic_histogr_type == VertcalHistogramType.Volume)
            {
                VolumeCheckBoxClick(null, null);
            }
            else if (vertic_histogr_type == VertcalHistogramType.CumulativeDelta)
            {
                CumulativeDeltaCheckBox.IsChecked = true;
                textbox_4.IsEnabled = false;
                textbox_5.IsEnabled = false;
                textbox_6.IsEnabled = false;
            }
        }
        private void CumulativeDeltaCheckBoxClick(object sender, RoutedEventArgs e)
        {
            vertic_histogr_type = VertcalHistogramType.CumulativeDelta;
            CumulativeDeltaCheckBox.IsChecked = true;

            VolumeCheckBox.IsChecked = false;
            textbox_4.IsEnabled      = false;
            textbox_5.IsEnabled      = false;
            textbox_6.IsEnabled      = false;
        }