Beispiel #1
0
        public Curve_Fit_Options(Chart_DRC my_chart)
        {
            InitializeComponent();
            chart = my_chart;

            chart.set_manual_bound(true);
            chart.set_bound_status(false);

            txt_min_bound_x.Text = Math.Pow(10, chart.get_min_bound_x()).ToString();
            txt_max_bound_x.Text = Math.Pow(10, chart.get_max_bound_x()).ToString();
            txt_min_bound_y.Text = chart.get_min_bound_y().ToString();
            txt_max_bound_y.Text = chart.get_max_bound_y().ToString();

            bound_min_x = Math.Pow(10, chart.get_min_bound_x());
            bound_max_x = Math.Pow(10, chart.get_max_bound_x());
            bound_min_y = chart.get_min_bound_y();
            bound_max_y = chart.get_max_bound_y();
            if(chart.top_fixed()) text_box_fix_top.Text = chart.get_top_fixed().ToString();
        }
Beispiel #2
0
        private void btn_reset_Click(object sender, EventArgs e)
        {
            chart.set_bound_status(true);
            chart.set_manual_bound(true);
            chart.set_general_params(false);
            chart.set_top_fixed(false);
            chart.set_data_modified(false);

            chart.draw_DRC(false, false);

            txt_min_bound_x.Text = Math.Pow(10, chart.get_min_bound_x()).ToString();
            txt_max_bound_x.Text = Math.Pow(10, chart.get_max_bound_x()).ToString();
            txt_min_bound_y.Text = chart.get_min_bound_y().ToString();
            txt_max_bound_y.Text = chart.get_max_bound_y().ToString();

            bound_min_x = Math.Pow(10, chart.get_min_bound_x());
            bound_max_x = Math.Pow(10, chart.get_max_bound_x());
            bound_min_y = chart.get_min_bound_y();
            bound_max_y = chart.get_max_bound_y();
        }