Exemplo n.º 1
0
        // This method inserts the valuse in procValues into the database
        private void writeDB()
        {
            label22.Text = "Last Update-  " + DateTime.Now.ToString();
            numCrunch log = new numCrunch();

            bool[] switches = log.dataEnable();
            log.insert(procdValues);
        }
Exemplo n.º 2
0
        private void BlankDisplay()
        {
            numCrunch log = new numCrunch();

            bool[] switches = log.dataEnable();

            if (switches[0] == false)
            {
                textBox1.Visible = false;
                label1.Visible   = false;
            }
            if (switches[0] == true)
            {
                textBox1.Visible = true;
                label1.Visible   = true;
            }
            if (switches[1] == false)
            {
                textBox2.Visible = false;
                label2.Visible   = false;
            }
            if (switches[1] == true)
            {
                textBox2.Visible = true;
                label2.Visible   = true;
            }
            if (switches[2] == false)
            {
                textBox3.Visible = false;
                label3.Visible   = false;
            }
            if (switches[2] == true)
            {
                textBox3.Visible = true;
                label3.Visible   = true;
            }
            if (switches[3] == false)
            {
                textBox4.Visible = false;
                label4.Visible   = false;
            }
            if (switches[3] == true)
            {
                textBox4.Visible = true;
                label4.Visible   = true;
            }
            if (switches[4] == false)
            {
                textBox5.Visible = false;
                label5.Visible   = false;
            }
            if (switches[4] == true)
            {
                textBox5.Visible = true;
                label5.Visible   = true;
            }
            if (switches[5] == false)
            {
                textBox6.Visible = false;
                label6.Visible   = false;
            }
            if (switches[5] == true)
            {
                textBox6.Visible = true;
                label6.Visible   = true;
            }
            if (switches[6] == false)
            {
                textBox7.Visible = false;
                label7.Visible   = false;
            }
            if (switches[6] == true)
            {
                textBox7.Visible = true;
                label7.Visible   = true;
            }
            if (switches[7] == false)
            {
                textBox8.Visible = false;
                label8.Visible   = false;
            }
            if (switches[7] == true)
            {
                textBox8.Visible = true;
                label8.Visible   = true;
            }

            if (switches[8] == false)
            {
                textBox9.Visible = false;
                label9.Visible   = false;
            }
            if (switches[8] == true)
            {
                textBox9.Visible = true;
                label9.Visible   = true;
            }
            if (switches[9] == false)
            {
                textBox10.Visible = false;
                label10.Visible   = false;
            }
            if (switches[9] == true)
            {
                textBox10.Visible = true;
                label10.Visible   = true;
            }
            if (switches[10] == false)
            {
                textBox11.Visible = false;
                label11.Visible   = false;
            }
            if (switches[10] == true)
            {
                textBox11.Visible = true;
                label11.Visible   = true;
            }
            if (switches[11] == false)
            {
                textBox12.Visible = false;
                label12.Visible   = false;
            }
            if (switches[11] == true)
            {
                textBox12.Visible = true;
                label12.Visible   = true;
            }
            if (switches[12] == false)
            {
                textBox13.Visible = false;
                label13.Visible   = false;
            }
            if (switches[12] == true)
            {
                textBox13.Visible = true;
                label13.Visible   = true;
            }
            if (switches[13] == false)
            {
                textBox14.Visible = false;
                label14.Visible   = false;
            }
            if (switches[13] == true)
            {
                textBox14.Visible = true;
                label14.Visible   = true;
            }
            if (switches[14] == false)
            {
                textBox15.Visible = false;
                label15.Visible   = false;
            }
            if (switches[14] == true)
            {
                textBox15.Visible = true;
                label15.Visible   = true;
            }
            if (switches[15] == false)
            {
                textBox16.Visible = false;
                label16.Visible   = false;
            }
            if (switches[15] == true)
            {
                textBox16.Visible = true;
                label16.Visible   = true;
            }
            //////////////////////////////////////////////////////////
            if (switches[32] == false)
            {
                textBox17.Visible = false;
                textBox18.Visible = false;
                textBox33.Visible = false;
                label17.Visible   = false;
            }
            if (switches[32] == true)
            {
                textBox17.Visible = true;
                textBox18.Visible = true;
                textBox33.Visible = true;
                label17.Visible   = true;
            }
            if (switches[33] == false)
            {
                textBox19.Visible = false;
                textBox20.Visible = false;
                textBox34.Visible = false;
                label18.Visible   = false;
            }
            if (switches[33] == true)
            {
                textBox19.Visible = true;
                textBox20.Visible = true;
                textBox34.Visible = true;
                label18.Visible   = true;
            }
            if (switches[34] == false)
            {
                textBox21.Visible = false;
                textBox22.Visible = false;
                textBox35.Visible = false;
                label19.Visible   = false;
            }
            if (switches[34] == true)
            {
                textBox21.Visible = true;
                textBox22.Visible = true;
                textBox35.Visible = true;
                label19.Visible   = true;
            }
            if (switches[35] == false)
            {
                textBox23.Visible = false;
                textBox24.Visible = false;
                textBox36.Visible = false;
                label20.Visible   = false;
            }
            if (switches[35] == true)
            {
                textBox23.Visible = true;
                textBox24.Visible = true;
                textBox36.Visible = true;
                label20.Visible   = true;
            }
            //////////////////////////////////////////////////
            if (switches[24] == false)
            {
                textBox25.Visible = false;
                label25.Visible   = false;
            }
            if (switches[24] == true)
            {
                textBox25.Visible = true;
                label25.Visible   = true;
            }
            if (switches[25] == false)
            {
                textBox26.Visible = false;
                label26.Visible   = false;
            }
            if (switches[25] == true)
            {
                textBox26.Visible = true;
                label26.Visible   = true;
            }
            if (switches[26] == false)
            {
                textBox27.Visible = false;
                label27.Visible   = false;
            }
            if (switches[26] == true)
            {
                textBox27.Visible = true;
                label27.Visible   = true;
            }
            if (switches[27] == false)
            {
                textBox28.Visible = false;
                label28.Visible   = false;
            }
            if (switches[27] == true)
            {
                textBox28.Visible = true;
                label28.Visible   = true;
            }
            if (switches[28] == false)
            {
                textBox29.Visible = false;
                label29.Visible   = false;
            }
            if (switches[28] == true)
            {
                textBox29.Visible = true;
                label29.Visible   = true;
            }
            if (switches[29] == false)
            {
                textBox30.Visible = false;
                label30.Visible   = false;
            }
            if (switches[29] == true)
            {
                textBox30.Visible = true;
                label30.Visible   = true;
            }
            if (switches[30] == false)
            {
                textBox31.Visible = false;
                label31.Visible   = false;
            }
            if (switches[30] == true)
            {
                textBox31.Visible = true;
                label31.Visible   = true;
            }
            if (switches[31] == false)
            {
                textBox32.Visible = false;
                label32.Visible   = false;
            }
            if (switches[31] == true)
            {
                textBox32.Visible = true;
                label32.Visible   = true;
            }
        }