Exemplo n.º 1
0
        public void showfile1()
        {
            if (sensor1cb_file1.Checked)
            {
                sensors1_cb_status[0] = true;
            }
            else
            {
                sensors1_cb_status[0] = false;
            }

            if (sensor2cb_file1.Checked)
            {
                sensors1_cb_status[1] = true;
            }
            else
            {
                sensors1_cb_status[1] = false;
            }

            if (sensor3cb_file1.Checked)
            {
                sensors1_cb_status[2] = true;
            }
            else
            {
                sensors1_cb_status[2] = false;
            }

            if (sensor4cb_file1.Checked)
            {
                sensors1_cb_status[3] = true;
            }
            else
            {
                sensors1_cb_status[3] = false;
            }

            saved_logs_display _form = new saved_logs_display();

            _form.transfer_data(1, sensors1_cb_status, filename1, -1);

            _form.charts_display(-1);

            _form.Show();
        }
Exemplo n.º 2
0
        public void comparesensor4()
        {
            saved_logs_display _form = new saved_logs_display();

            if (sensor4cb_file1.Checked)
            {
                sensors1_cb_status[3] = true;
            }
            else
            {
                sensors1_cb_status[3] = false;
            }

            if (sensor4cb_file2.Checked)
            {
                sensors2_cb_status[3] = true;
            }
            else
            {
                sensors2_cb_status[3] = false;
            }

            if (sensor4cb_file3.Checked)
            {
                sensors3_cb_status[3] = true;
            }
            else
            {
                sensors3_cb_status[3] = false;
            }

            if (sensor4cb_file4.Checked)
            {
                sensors4_cb_status[3] = true;
            }
            else
            {
                sensors4_cb_status[3] = false;
            }

            if (sensors1_cb_status[3])
            {
                _form.transfer_data(24, sensors1_cb_status, filename1, 1);
                _form.charts_display(1);
            }
            if (sensors2_cb_status[3])
            {
                _form.transfer_data(24, sensors2_cb_status, filename2, 2);
                _form.charts_display(2);
            }
            if (sensors3_cb_status[3])
            {
                _form.transfer_data(24, sensors3_cb_status, filename3, 3);
                _form.charts_display(3);
            }
            if (sensors4_cb_status[3])
            {
                _form.transfer_data(24, sensors4_cb_status, filename4, 4);
                _form.charts_display(4);
            }

            _form.Show();
            _form.Width         += 30;
            _form.logs_LB.Width += 30;
        }